re.gfx.color_ext

color functions and utilities

Members

Functions

color_alpha_white
Color color_alpha_white(float alpha)

gets a color that is white with a given alpha

color_alpha_white
Color color_alpha_white(float r, float g, float b, float a)

gets a color from floats

color_blend
Color color_blend(Color c1, Color c2, float mix)

color blending algorithm - from https://stackoverflow.com/a/39924008/13240621

color_fade
Color color_fade(Color color, float fade)

fades a color

color_hsv
Color color_hsv(float h, float s, float v)

gets a color from hsv

color_rgb
Color color_rgb(ubyte r, ubyte g, ubyte b, ubyte a)

gets a color from rgb

color_rgb
Color color_rgb(float r, float g, float b, float a)

gets a color from rgb

color_rgb
Color color_rgb(ubyte v)

gets a color from rgb in a single value

Meta