Jo Engine  2020.06.22
Jo Sega Saturn Engine
Macros | Functions
colors.h File Reference

Jo Engine Standard colors. More...

Go to the source code of this file.

Macros

#define JO_COLOR_INDEX_White
 
#define JO_COLOR_INDEX_Black
 
#define JO_COLOR_INDEX_Red
 
#define JO_COLOR_INDEX_Green
 
#define JO_COLOR_INDEX_Yellow
 
#define JO_COLOR_INDEX_Blue
 
#define JO_COLOR_INDEX_Purple
 
#define JO_COLOR_White
 
#define JO_COLOR_Black
 
#define JO_COLOR_Red
 
#define JO_COLOR_Green
 
#define JO_COLOR_Yellow
 
#define JO_COLOR_Blue
 
#define JO_COLOR_Purple
 
#define JO_COLOR_Cyan
 
#define JO_COLOR_Gray
 
#define JO_COLOR_DarkRed
 
#define JO_COLOR_DarkGreen
 
#define JO_COLOR_DarkYellow
 
#define JO_COLOR_DarkBlue
 
#define JO_COLOR_DarkPurple
 
#define JO_COLOR_DarkCyan
 
#define JO_COLOR_DarkGray
 
#define JO_COLOR_MediumRed
 
#define JO_COLOR_MediumGreen
 
#define JO_COLOR_MediumYellow
 
#define JO_COLOR_MediumBlue
 
#define JO_COLOR_MediumPurple
 
#define JO_COLOR_MediumCyan
 
#define JO_COLOR_MediumWhite
 
#define JO_COLOR_SemiRed
 
#define JO_COLOR_SemiGreen
 
#define JO_COLOR_SemiYellow
 
#define JO_COLOR_SemiBlue
 
#define JO_COLOR_SemiPurple
 
#define JO_COLOR_SemiCyan
 
#define JO_COLOR_Transparent
 Transparent color. More...
 
#define JO_COLOR_SATURN(C)
 Internal, you should not use this macro. More...
 
#define JO_COLOR_SATURN_RGB(R, G, B)
 Internal, you should not use this macro. More...
 
#define JO_COLOR_RGB(R, G, B)
 Get jo_color type from RGB additive color model. More...
 

Functions

static __jo_force_inline void jo_set_screen_color_filter_a (jo_scroll_screen screens, short r, short g, short b)
 Set color filter A for scroll screen. More...
 
static __jo_force_inline void jo_set_screen_color_filter_b (jo_scroll_screen screens, short r, short g, short b)
 Set color filter A for scroll screen. More...
 
static __jo_force_inline void jo_disable_screen_color_filter (jo_scroll_screen screens)
 Disable color filter for scroll screen. More...
 
static __jo_force_inline void jo_disable_all_screen_color_filter (void)
 Disable color filter for all scroll screen. More...
 

Detailed Description

Jo Engine Standard colors.

Author
Johannes Fetz
Bug:
No known bugs.

Macro Definition Documentation

◆ JO_COLOR_Black

#define JO_COLOR_Black

◆ JO_COLOR_Blue

#define JO_COLOR_Blue

◆ JO_COLOR_Cyan

#define JO_COLOR_Cyan

◆ JO_COLOR_DarkBlue

#define JO_COLOR_DarkBlue

◆ JO_COLOR_DarkCyan

#define JO_COLOR_DarkCyan

◆ JO_COLOR_DarkGray

#define JO_COLOR_DarkGray

◆ JO_COLOR_DarkGreen

#define JO_COLOR_DarkGreen

◆ JO_COLOR_DarkPurple

#define JO_COLOR_DarkPurple

◆ JO_COLOR_DarkRed

#define JO_COLOR_DarkRed

◆ JO_COLOR_DarkYellow

#define JO_COLOR_DarkYellow

◆ JO_COLOR_Gray

#define JO_COLOR_Gray

◆ JO_COLOR_Green

#define JO_COLOR_Green

◆ JO_COLOR_INDEX_Black

#define JO_COLOR_INDEX_Black

◆ JO_COLOR_INDEX_Blue

#define JO_COLOR_INDEX_Blue

◆ JO_COLOR_INDEX_Green

#define JO_COLOR_INDEX_Green

◆ JO_COLOR_INDEX_Purple

#define JO_COLOR_INDEX_Purple

◆ JO_COLOR_INDEX_Red

#define JO_COLOR_INDEX_Red

◆ JO_COLOR_INDEX_White

#define JO_COLOR_INDEX_White

◆ JO_COLOR_INDEX_Yellow

#define JO_COLOR_INDEX_Yellow

◆ JO_COLOR_MediumBlue

#define JO_COLOR_MediumBlue

◆ JO_COLOR_MediumCyan

#define JO_COLOR_MediumCyan

◆ JO_COLOR_MediumGreen

#define JO_COLOR_MediumGreen

◆ JO_COLOR_MediumPurple

#define JO_COLOR_MediumPurple

◆ JO_COLOR_MediumRed

#define JO_COLOR_MediumRed

◆ JO_COLOR_MediumWhite

#define JO_COLOR_MediumWhite

◆ JO_COLOR_MediumYellow

#define JO_COLOR_MediumYellow

◆ JO_COLOR_Purple

#define JO_COLOR_Purple

◆ JO_COLOR_Red

#define JO_COLOR_Red

◆ JO_COLOR_RGB

#define JO_COLOR_RGB (   R,
  G,
 
)

Get jo_color type from RGB additive color model.

Parameters
RRed [0, 255]
GGreen [0, 255]
BBlue [0, 255]
Returns
jo_color

◆ JO_COLOR_SATURN

#define JO_COLOR_SATURN (   C)

Internal, you should not use this macro.

◆ JO_COLOR_SATURN_RGB

#define JO_COLOR_SATURN_RGB (   R,
  G,
 
)

Internal, you should not use this macro.

◆ JO_COLOR_SemiBlue

#define JO_COLOR_SemiBlue

◆ JO_COLOR_SemiCyan

#define JO_COLOR_SemiCyan

◆ JO_COLOR_SemiGreen

#define JO_COLOR_SemiGreen

◆ JO_COLOR_SemiPurple

#define JO_COLOR_SemiPurple

◆ JO_COLOR_SemiRed

#define JO_COLOR_SemiRed

◆ JO_COLOR_SemiYellow

#define JO_COLOR_SemiYellow

◆ JO_COLOR_Transparent

#define JO_COLOR_Transparent

Transparent color.

◆ JO_COLOR_White

#define JO_COLOR_White

◆ JO_COLOR_Yellow

#define JO_COLOR_Yellow

Function Documentation

◆ jo_disable_all_screen_color_filter()

static __jo_force_inline void jo_disable_all_screen_color_filter ( void  )
static

Disable color filter for all scroll screen.

◆ jo_disable_screen_color_filter()

static __jo_force_inline void jo_disable_screen_color_filter ( jo_scroll_screen  screens)
static

Disable color filter for scroll screen.

Parameters
screensScroll screens (You can pass multiple value using pipe(|). Example: JO_SPRITE_SCREEN|JO_NBG0_SCREEN)

◆ jo_set_screen_color_filter_a()

static __jo_force_inline void jo_set_screen_color_filter_a ( jo_scroll_screen  screens,
short  r,
short  g,
short  b 
)
static

Set color filter A for scroll screen.

Parameters
screensScroll screens (You can pass multiple value using pipe(|). Example: JO_SPRITE_SCREEN|JO_NBG0_SCREEN)
rRed offset value (signed 9 bits)
gGreen offset value (signed 9 bits)
bBlue offset value (signed 9 bits)

◆ jo_set_screen_color_filter_b()

static __jo_force_inline void jo_set_screen_color_filter_b ( jo_scroll_screen  screens,
short  r,
short  g,
short  b 
)
static

Set color filter A for scroll screen.

Parameters
screensScroll screens (You can pass multiple value using pipe(|). Example: JO_SPRITE_SCREEN|JO_NBG0_SCREEN)
rRed offset value (signed 9 bits)
gGreen offset value (signed 9 bits)
bBlue offset value (signed 9 bits)