documentation/kernel/drivers/graphics/color.h.md

945 B

color.h

Provides basic color definitions and operations.

color_palette_E - enum

Indexes for g_color_palette. The color palette was designed by gogh.

  • Grey Dark
  • Pink
  • Signal Green
  • Orange
  • Blue
  • Purple
  • Green
  • Grey Light
  • Red

color_argb_T - struct

Name Type Description
alpha uint8_t Transparency value of the color
red uint8_t Red value of the color
green uint8_t Green value of the color
blue uint8_t Blue value of the color

color_argb_blend_alpha(background, foreground) - function (color_argb_T)

Blends background and foreground with the alpha value of foreground.

g_color_palette - global variable

An array of standard colors. This array is indexed using color_palette_E.