![]() |
Jo Engine 2026.11.1
Jo Sega Saturn Engine
|
Jo Engine Standard colors. More...
Go to the source code of this file.
Functions | |
| static __jo_force_inline jo_color | jo_color_mix (const jo_color a, const jo_color b, const int t) |
| A color between 2 colors (each component interpolated). | |
| void | jo_set_screen_color_filter_a (const jo_scroll_screen screens, const short r, const short g, const short b) |
| Set color filter A for scroll screen. | |
| void | jo_set_screen_color_filter_b (const jo_scroll_screen screens, const short r, const short g, const short b) |
| Set color filter A for scroll screen. | |
| void | jo_disable_screen_color_filter (const jo_scroll_screen screens) |
| Disable color filter for scroll screen. | |
| void | jo_fade_screens (const jo_scroll_screen screens, const short from, const short to, const int frames) |
| Fade scroll screens: their color filter A from a level to another, a step at each VBLANK (waits for the end). | |
| static __jo_force_inline void | jo_disable_all_screen_color_filter (void) |
| Disable color filter for all scroll screen. | |
Jo Engine Standard colors.
| #define JO_COLOR_Black |
| #define JO_COLOR_Blue |
| #define JO_COLOR_Cyan |
| #define JO_COLOR_DarkBlue |
| #define JO_COLOR_DarkCyan |
| #define JO_COLOR_DarkGray |
| #define JO_COLOR_DarkGreen |
| #define JO_COLOR_DarkPurple |
| #define JO_COLOR_DarkRed |
| #define JO_COLOR_DarkYellow |
| #define JO_COLOR_Gray |
| #define JO_COLOR_Green |
| #define JO_COLOR_INDEX_Black |
| #define JO_COLOR_INDEX_Blue |
| #define JO_COLOR_INDEX_Green |
| #define JO_COLOR_INDEX_Purple |
| #define JO_COLOR_INDEX_Red |
| #define JO_COLOR_INDEX_White |
| #define JO_COLOR_INDEX_Yellow |
| #define JO_COLOR_MediumBlue |
| #define JO_COLOR_MediumCyan |
| #define JO_COLOR_MediumGreen |
| #define JO_COLOR_MediumPurple |
| #define JO_COLOR_MediumRed |
| #define JO_COLOR_MediumWhite |
| #define JO_COLOR_MediumYellow |
| #define JO_COLOR_Purple |
| #define JO_COLOR_Red |
| #define JO_COLOR_RGB | ( | R, | |
| G, | |||
| B ) |
| #define JO_COLOR_SATURN | ( | C | ) |
Internal, you should not use this macro.
| #define JO_COLOR_SATURN_GET_B | ( | C | ) |
| #define JO_COLOR_SATURN_GET_G | ( | C | ) |
| #define JO_COLOR_SATURN_GET_R | ( | C | ) |
| #define JO_COLOR_SATURN_MSB |
Internal, you should not use this macro.
MSB of a Saturn color (RGB color flag)
| #define JO_COLOR_SATURN_RGB | ( | R, | |
| G, | |||
| B ) |
Internal, you should not use this macro.
| #define JO_COLOR_SemiBlue |
| #define JO_COLOR_SemiCyan |
| #define JO_COLOR_SemiGreen |
| #define JO_COLOR_SemiPurple |
| #define JO_COLOR_SemiRed |
| #define JO_COLOR_SemiYellow |
| #define JO_COLOR_Transparent |
Transparent color.
| #define JO_COLOR_White |
| #define JO_COLOR_Yellow |
|
static |
A color between 2 colors (each component interpolated).
| a | First color (t = 0) |
| b | Second color (t = 256) |
| t | 0 to 256 |
|
static |
Disable color filter for all scroll screen.
| void jo_disable_screen_color_filter | ( | const jo_scroll_screen | screens | ) |
Disable color filter for scroll screen.
| screens | Scroll screens (You can pass multiple value using pipe(|). Example: JO_SPRITE_SCREEN|JO_NBG0_SCREEN) |
| void jo_fade_screens | ( | const jo_scroll_screen | screens, |
| const short | from, | ||
| const short | to, | ||
| const int | frames ) |
Fade scroll screens: their color filter A from a level to another, a step at each VBLANK (waits for the end).
| screens | Scroll screens (You can pass multiple value using pipe(|). Example: JO_SPRITE_SCREEN|JO_NBG1_SCREEN) |
| from | First level (-255: black, 0: the colors as they are, 255: white) |
| to | Last level (the color filter A stays at it: 0 then jo_disable_screen_color_filter()) |
| frames | Number of VBLANK of the fade |
| void jo_set_screen_color_filter_a | ( | const jo_scroll_screen | screens, |
| const short | r, | ||
| const short | g, | ||
| const short | b ) |
Set color filter A for scroll screen.
| screens | Scroll screens (You can pass multiple value using pipe(|). Example: JO_SPRITE_SCREEN|JO_NBG0_SCREEN) |
| r | Red offset value (signed 9 bits) |
| g | Green offset value (signed 9 bits) |
| b | Blue offset value (signed 9 bits) |
| void jo_set_screen_color_filter_b | ( | const jo_scroll_screen | screens, |
| const short | r, | ||
| const short | g, | ||
| const short | b ) |
Set color filter A for scroll screen.
| screens | Scroll screens (You can pass multiple value using pipe(|). Example: JO_SPRITE_SCREEN|JO_NBG0_SCREEN) |
| r | Red offset value (signed 9 bits) |
| g | Green offset value (signed 9 bits) |
| b | Blue offset value (signed 9 bits) |