forked from AbleOS/ableos
28 lines
814 B
Plaintext
28 lines
814 B
Plaintext
software := @use("software.hb")
|
|
image := @use("image/lib.hb")
|
|
text := @use("text.hb")
|
|
|
|
// default mode
|
|
mode := software
|
|
|
|
init := mode.init
|
|
Surface := mode.Surface
|
|
|
|
// Colours
|
|
Color := packed struct {b: u8, g: u8, r: u8, a: u8}
|
|
$WHITE := Color.(255, 255, 255, 255)
|
|
$BLACK := Color.(0, 0, 0, 255)
|
|
$GRAY := Color.(127, 127, 127, 255)
|
|
$RED := Color.(0, 0, 205, 255)
|
|
$GREEN := Color.(0, 205, 0, 255)
|
|
$YELLOW := Color.(0, 205, 205, 255)
|
|
$BLUE := Color.(205, 0, 0, 255)
|
|
$MAGENTA := Color.(205, 0, 205, 255)
|
|
$CYAN := Color.(205, 205, 0, 255)
|
|
$LIGHT_GRAY := Color.(229, 229, 229, 255)
|
|
$LIGHT_RED := Color.(0, 0, 255, 255)
|
|
$LIGHT_GREEN := Color.(0, 255, 0, 255)
|
|
$LIGHT_YELLOW := Color.(0, 255, 255, 255)
|
|
$LIGHT_BLUE := Color.(255, 0, 0, 255)
|
|
$LIGHT_MAGENTA := Color.(255, 0, 255, 255)
|
|
$LIGHT_CYAN := Color.(255, 255, 0, 255) |