This repository has been archived on 2023-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
homepage/content/projects/noxos/docs/codebase/drivers/graphics/color.h.md

1.2 KiB

title summary
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.