2024-09-18 03:38:49 -05:00
|
|
|
software := @use("software.hb")
|
2024-11-06 19:55:08 -06:00
|
|
|
image := @use("image/lib.hb")
|
2024-10-26 03:23:28 -05:00
|
|
|
text := @use("text.hb")
|
2024-09-13 16:41:31 -05:00
|
|
|
|
|
|
|
// default mode
|
|
|
|
mode := software
|
|
|
|
|
|
|
|
init := mode.init
|
2024-10-17 09:31:42 -05:00
|
|
|
Surface := mode.Surface
|
2024-10-14 19:24:29 -05:00
|
|
|
|
2024-09-13 16:41:31 -05:00
|
|
|
// Colours
|
2024-10-13 17:38:43 -05:00
|
|
|
Color := packed struct {b: u8, g: u8, r: u8, a: u8}
|
2024-12-14 10:39:45 -06:00
|
|
|
$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)
|