Files
KataMario/include/color_presets.h
T
+1 f3e61a31aa HackerSM64 v2.0.0
* buffers: refresh 15 and revert to base decomp

* behavior script

* color helper functions

* extended bounds

* egeo_layout

* fixed model ids

* camera conf improved

* message panel ucode small

* graph node

* level script

* mathutil updates

* mathutil updates (allow unused funcs)

* behaviors a - beta_fish

* Add librtc and fix some data declarations

* Move GRUCODE define to proper location in makefile

* Refresh 15

* extra

* Make ROM name smaller and change messages printed on build a bit

* Fix console (lol)

* Update UNF to latest master

* Make ucode load from .o's (and also fix Super3D)

* Fix crash with rumble + custom mario model

* graph node and mathutil

* removed behaviors

* Ldtob documentation

* _Putfld labeling

* area

* behavior actions

* camera

* debug updates

* bubbles

* envfx snow

* farcall helpers

* game init

* geo misc

* hud

* only check if VC on render init

* ingame menu

* revert goddard to base decomp

* insn disasm

* interaction documentation

* level geo

* level update defines

* macro special objects formatting changes

* main.h documentation

* map parser documentation & formatting

* airborne documentation

* mario actions automatic documentation

* mario actions cutscene documentation

* mario actions moving documentation and options

* mario actions object documentation and options

* mario stationary documentation

* mario submerged documentation

* mario misc documentation

* mario step: ledge grab fixes and documentation

* mario documentation

* memory.h documentation

* moving textures

* object behaviors

* object collision

* fix flamethrower bug

* object helpers

* object list processor documentation

* paintings

* platform displacement

* print / printf

* puppycam absf

* puppyprint updates and formatting changes

* rendering graph node performance optimizations

* rumble opt and doc

* hqvm back to ultrasm64

* save file documentation and unlock defines

* s2d engine

* reset various files to ultrasm64

* file select

* intro geo documentation

* screen transition documentation

* segment2.h

* shadow overhaul

* skybox refactor

* sound init: clean up define usage + documentation

* spawn object optimizations and documentation

* spawn sound cleanup

* sram to ultrasm64

* star select cleanup

* title screen cleanup

* dialogs / text

* rename stomp smoke

* stomp smoke -> small water splash

* updated README

* compilation flags

* optimized file positions + support function/data sections

* surface collision performance improvements

* surface load optimizations

* camera conf documentation

* Allow easier command for opening puppyprint debug

* Rearranged framebuffers & fixed puppyprint console printing

* Fix shadow scaling and shifting

* Fix SILHOUETTE, OBJECTS_REJ, and ucode loading, also clean up render phase system a bit.

* Fixed build with BETTER_HANGING off

* Clean up OBJECTS_REJ ifdefs

* Fix duplicate comment & graph render layers/flags bitmask

* Fixed build with BETTER_HANGING off

* Fix Fast64 importing by reverting sSegmentTable change

* Readded missing functions that caused build errors with Mario head enabled

* Fixed clang compilation issues

* Add INTER mode for geo_update_layer_transparency

* Fix build warnings

* bugfix: miscalculation in obj_turn_toward_object

* Some puppytech fixes

* Further Puppycamera fixes

* Fix BUGFIX_DIALOG_TIME_STOP

Fixes #136

* Fix sliding platform bparams

* Add LEGACY_SHADOW_IDS define for Fast64 compatibility

* Apply suggested changes

* Better find_in_bounds_yaw_wdw_bob_thi ifdef

* Fix build warnings for unused functions

* Fixed stale reference bug from obj_mark_for_deletion change

* Fixed incorrect digit for 100s #145

* Change groundpound-fix define and functionality to just disable bonking

* Fixed puppyroll #134

* Adjust height value for terrain angle to kick in

* fixed hi score flashing

* Remove menudata backup (#131)

Not considered important enough to keep

* Fix fread() build warning

* Add COURSE_NUM_TO_INDEX to save_file_get_star_flags check in bhv_unagi_init

* Fix approach_s16 return value

* Use boolean defines for oCapDoScaleVertically

* Make the door lock a part of the key door model to eliminate z-fighting, also reduce z fighting on numbered doors with AUTO_LOD enabled.

* Move flames to LAYER_TRANSPARENT_INTER

* Resolved some compiler warnings and added FALL_THROUGH define (#168)

* Address some more compiler warnings with different define toggles

* Remove unnecessary fallthrough attribute

* fixed geo_process_billboard floating point exception

* Allow water to face any direction

* Initialize focOffset so that BBH doesn't crash

* Removed superfluous RDP commands when switching microcodes which would override scissor

* Set OBJ_FLAG_DONT_CALC_COLL_DIST on bhvUkikiCage

* Fix rumble build

* Fixed UNLOCK_FPS strobing

* Update src/game/object_helpers.c

Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>

* Update src/game/object_helpers.c

Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>

* Fix LEGACY_SHADOW_IDS id conflict

* Use the vanilla default value for rotating fire bars if bparam2 is 0

* START_LEVEL safeguard

* Fix some drawing distance issues caused by AUTO_COLLISION_DISTANCE

* Fix rumble build

* Fixed spline poll code using the wrong values for keyframes

* Update readme with better credits

Better credits for individual contributors

* add arthur

* added falco and moose

* add fazana

* le funny typo

* added S2DEX engine to credits

* silhouette + axo + ratio

* remove specific callouts + add auto col distance

* Update data/behavior_data.c

Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>

* Update data/behavior_data.c

Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>

* Update data/behavior_data.c

Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>

* Revert formatting changes to match vanilla decomp

* Re-implement Y buffer for find_ceil

* Re-implement POWER_STARS_HEAL for normal Power Stars

* Start level comment & exit course comment/collapse

* utilize reonucam technique for FAST_VERTICAL_CAMERA_MOVEMENT

* Fix "MAX_REFERENCED_WALLS" typo

* Allow stop_and_set_height_to_floor to work at any height if Mario is teleporting (#213)

* Revert stop_and_set_height_to_floor to vanilla

Fixes #208

* Fixed sAudioEnabled so that it disables audio CPU processing as well

* Fixed puppyprint debug RDP us calculations

* Renamed sAudioEnabled to gAudioEnabled

* Replaced mtxf_to_mtx_asm with an equivalent implementation that supports WORLD_SCALE

* Moved extended bounds and world scale configuration to a new config_world.h file

* Default all objects to non-rej (#227)

Fixes #221 (Default all objects to non-rej)

* Fix #221

* Fix VISUAL_DEBUG breaking/crashing when OBJECTS_REJ is disabled (#211)

* Fix VISUAL_DEBUG breaking/crashing when OBJECTS_REJ is disabled

* Change vtl decrement in visual_surface_display from 6 to 3

Fixes #207

* Make area in SL igloo wider to prevent a softlock (#233)

Fixes #210

* Fix coin formation coins being deleted if they spawn in the middle of a floor, also fix TTM slide coin position (#232)

Fixes #201

* Make UNLOCK_ALL apply to more things

* Fix wrong ifdef/ifndef in bhv_invisible_objects_under_bridge_init

* Change chain chomp load/unload distances depending on number of segments (#237)

Fixes #192

* added WATER_PLUNGE_UPWARP define

* Add reonucam patch (#239)

* added reonucam patch
Fixes #218

* Fix how shadows handle water/transparency/height (#228)

* Fix how shadows handle water/transparency/height

* Change shadow check for flying carpets from a level specific check to a oPlatformOnTrackType check

Fixes #179

* added reonucam credit

* delete unnecesary patches

* Apply suggested changes

* murdered more patches

* UNLOCK_ALL unlocks the cap boxes

* UNLOCK_ALL unlocks cap boxes (slightly more epic edition)

* revert ceil buffer

* Renamed HD_INTRO_TEXTURES define, separated intro floombas

* prevent double definition of floombas

* actually prevent floomba redefinition

* Develop/refactor  default defines (#242)

* Changed default config options

* Added build dir to includePaths for pngs

* disable NO_SLEEP by default

* Disable puppyprint by default

Sorry fazana 😔

* fix typos

* add comment about BETTER_REVERB console perf

* disable blue coin switch retry by default

* Update config_audio.h

Co-authored-by: Reonu <danileon95@gmail.com>
Co-authored-by: Mr-Wiseguy <68165316+Mr-Wiseguy@users.noreply.github.com>

* revert air step line to vanilla to fix bitfs scaling platform issue (#247)

Fixes #200

* Fix stuttering on thin slopes (#248)

* Fix stuttering on thin slopes

* Revert vec3f_find_ceil calls to vanilla

* Rename vec3f_find_ceil to find_mario_ceil

* Update src/engine/surface_collision.h

Fixes #249

* Swap static and dynamic surface checks back to vanilla order (#253)

* Swap static and dynamic surface checks back to vanilla order

* re-enable DISABLE_ALL config

Fixes #251 #252

* Fixed save and quitting while in widescreen (#257)

* Fixed save and quitting while in widescreen

* use define for the level

* all my homies hate ifdefs

* skip wall offsets < 0 (#255)

Fixes #255

* #264: Document non-stop stars' issues (#267)

* #264: Document non-stop stars' issues

* Update include/config/config_game.h

* nonstop vanilla comment

* derive margin_radius from radius after capping at 200 (#266)

Fixes #259

* Config cleanup/refactor (#269)

* Moved puppyprint define to graphics / rearranged some debug defines for ease of access

* Moved compatibility safeguards to config_safeguards.h

* spacing and comment formatting

* #272 Move GFX_POOL_SIZE to config_graphics.h

* disable EASIER_DIALOG_TRIGGER by default

* prevent redefining warnings

* small ifdef typo

* changed ifndef to undefs

Fixes #262
Fixes #272

* Improved movement config documentation related to turning around (#271)

Fixes #270

* rename CUSTOM_DEBUG, add comments (#275)

* Update README.md (#277)

* v2.0.0

Co-authored-by: CrashOveride95 <crashoveride953@gmail.com>
Co-authored-by: Arceveti <73617174+Arceveti@users.noreply.github.com>
Co-authored-by: n64 <n64>
Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>
Co-authored-by: Mr-Wiseguy <mrwiseguyromhacking@gmail.com>
Co-authored-by: aglab2 <aglab3@gmail.com>
Co-authored-by: gheskett <gheskett@gmail.com>
Co-authored-by: Reonu <danileon95@gmail.com>
Co-authored-by: Axollyon <20480418+Axollyon@users.noreply.github.com>
Co-authored-by: Mr-Wiseguy <68165316+Mr-Wiseguy@users.noreply.github.com>
2021-12-30 16:57:51 +00:00

263 lines
16 KiB
C

#pragma once
// Texture formats:
// NOTE: IA4 and RGBA16 formats are tricky, because while their
// composite values are 4bit aligned, their components are not.
// i4
// A 0000 0000 0000 0000 0000 0000 0000 1111 >> 0x0 & 0xF = 0-15 * (255/15 = 17) = 0..255
// i8
// A 0000 0000 0000 0000 0000 0000 1111 1111 >> 0x0 & 0xFF = 0..255
// ia4
// I 0000 0000 0000 0000 0000 0000 0000 1110 >> 0x1 & 0x7 = 0-7 * (255/7 = 36.4285714286) = 0..255
// A 0000 0000 0000 0000 0000 0000 0000 0001 >> 0x0 & 0x1 = 0-255
// ia8
// I 0000 0000 0000 0000 0000 0000 1111 0000 >> 0x4 & 0xF = 0-15 * (255/15 = 17) = 0..255
// A 0000 0000 0000 0000 0000 0000 0000 1111 >> 0x0 & 0xF = 0-15 * (255/15 = 17) = 0..255
// ia16
// I 0000 0000 0000 0000 1111 1111 0000 0000 >> 0x8 & 0xFF = 0..255
// A 0000 0000 0000 0000 0000 0000 1111 1111 >> 0x0 & 0xFF = 0..255
// rgba16
// 0000 0000 0000 0000 0000 0000 0001 1111
// R 0000 0000 0000 0000 1111 1000 0000 0000 >> 0xB & 0x1F = 0-31 * (255/31 = 8.22580645161) = 0..255
// G 0000 0000 0000 0000 0000 0111 1100 0000 >> 0x6 & 0x1F = 0-31 * (255/31 = 8.22580645161) = 0..255
// B 0000 0000 0000 0000 0000 0000 0011 1110 >> 0x1 & 0x1F = 0-31 * (255/31 = 8.22580645161) = 0..255
// A 0000 0000 0000 0000 0000 0000 0000 0001 >> 0x0 & 0x1 = 0-1
// rgba32
// R 1111 1111 0000 0000 0000 0000 0000 0000 >> 0x20 & 0xFF = 0..255
// G 0000 0000 1111 1111 0000 0000 0000 0000 >> 0x10 & 0xFF = 0..255
// B 0000 0000 0000 0000 1111 1111 0000 0000 >> 0x8 & 0xFF = 0..255
// A 0000 0000 0000 0000 0000 0000 1111 1111 >> 0x0 & 0xFF = 0..255
// ci4
// P 0000 0000 0000 0000 0000 0000 0000 1111 >> 0x0 & 0xF = 0-15 * (255/15 = 17) = 0..255
// RGBA16
// ci8
// P 0000 0000 0000 0000 0000 0000 1111 1111 >> 0x0 & 0xFF = 0-255
// RGBA16
#include "PR/gbi.h"
// -- Presets --
// I4 (I[0..15]) IIII
#define COLOR_I4_BLACK 0b0000 // 0000 | 0x0 | 0
#define COLOR_I4_GRAY 0b0111 // 0111 | 0x7 | 7
#define COLOR_I4_WHITE 0b1111 // 1111 | 0xF | 15
// I8 (I[0..255]) IIIIIIII
#define COLOR_I8_BLACK 0b00000000 // 0x00 // 0000 0000 | 0
#define COLOR_I8_GRAY 0b01111111 // 0x7F // 0111 1111 | 127
#define COLOR_I8_WHITE 0b11111111 // 0xFF // 1111 1111 | 255
// IA4 (I[0..7], A[0..1]) IIIA
#define COLOR_IA4_NONE 0b0000 // | 000 0 | 0x00 | 0 0
#define COLOR_IA4_BLACK 0b0000 // | 000 1 | 0x0F | 0 1
#define COLOR_IA4_GRAY 0b0000 // | 011 1 | 0x7F | 3 1
#define COLOR_IA4_WHITE 0b0000 // | 111 1 | 0xFF | 7 1
// IA8 (I[0..15], A[0..15]) IIIIAAAA
#define COLOR_IA8_NONE 0b00000000 // 0000 0000 | 0x00 | 0 0
#define COLOR_IA8_BLACK 0b00001111 // 0000 1111 | 0x0F | 0 15
#define COLOR_IA8_GRAY 0b01111111 // 0111 1111 | 0x7F | 7 15
#define COLOR_IA8_WHITE 0b11111111 // 1111 1111 | 0xFF | 15 15
// IA16 (I[0..255], A[0..255]) IIIIIIIIAAAAAAAA
#define COLOR_IA16_NONE 0b0000000000000000 // 0000 0000 0000 0000 | 0x0000 | 0 0
#define COLOR_IA16_BLACK 0b0000000011111111 // 0000 0000 1111 1111 | 0x00FF | 0 255
#define COLOR_IA16_GRAY 0b0111111111111111 // 0111 1111 1111 1111 | 0x7FFF | 127 255
#define COLOR_IA16_WHITE 0b1111111111111111 // 1111 1111 1111 1111 | 0xFFFF | 255 255
// RGBA16 (RGB[0..31], A[0..1])
// Grayscale Colors
// RRRRRGGGGGBBBBBA | RRRR RGGG GGBB BBBA | RRRRR GGGGG BBBBB A | 0x0000 | R G B A
#define COLOR_RGBA16_NONE RGBA16_COMPOSITE_GRAYSCALE( 0, 0) // 0b0000000000000000 | 0000 0000 0000 0000 | 00000 00000 00000 0 | 0x0000 | 0 0 0 0
#define COLOR_RGBA16_BLACK RGBA16_COMPOSITE_GRAYSCALE( 0, 1) // 0b0000000000000001 | 0000 0000 0000 0001 | 00000 00000 00000 1 | 0x0001 | 0 0 0 1
#define COLOR_RGBA16_DARK_GRAY RGBA16_COMPOSITE_GRAYSCALE( 7, 1) // 0b0011100111001111 | 0011 1001 1100 1111 | 00111 00111 00111 1 | 0x39CF | 7 7 7 1
#define COLOR_RGBA16_GRAY RGBA16_COMPOSITE_GRAYSCALE(15, 1) // 0b0111101111011111 | 0111 1011 1101 1111 | 01111 01111 01111 1 | 0x7BDF | 15 15 15 1
#define COLOR_RGBA16_LIGHT_GRAY RGBA16_COMPOSITE_GRAYSCALE(23, 1) // 0b1011110111101111 | 1011 1101 1110 1111 | 10111 10111 10111 1 | 0xBDEF | 23 23 23 1
#define COLOR_RGBA16_WHITE RGBA16_COMPOSITE_GRAYSCALE(31, 1) // 0b1111111111111111 | 1111 1111 1111 1111 | 11111 11111 11111 1 | 0xFFFF | 31 31 31 1
// Crash screen
// RRRRRGGGGGBBBBBA | RRRR RGGG GGBB BBBA | RRRRR GGGGG BBBBB A | 0x0000 | R G B A
#define COLOR_RGBA16_CRASH_ERROR RGBA16_COMPOSITE(12, 9, 9, 1) // 0b0110001001010011 | 0110 0010 0101 0011 | 01100 01001 01001 1 | 0x6253 | 12 9 9 1
#define COLOR_RGBA16_CRASH_ASSERT RGBA16_COMPOSITE(10, 9, 21, 1) // 0b0101001001100011 | 0101 0010 0110 0011 | 01010 01001 10001 1 | 0x5263 | 10 9 21 1
#define COLOR_RGBA16_CRASH_BLACK COLOR_RGBA16_BLACK
#define COLOR_RGBA16_CRASH_WHITE COLOR_RGBA16_WHITE
// RGBA32 (RGB[0..255], A[0..255])
// Grayscale
#define COLOR_RGBA32_NONE 0x00000000 // 0 0 0 0
#define COLOR_RGBA32_BLACK 0x000000FF // 0 0 0 255
#define COLOR_RGBA32_DARK_GRAY 0x3F3F3FFF // 63 63 63 255
#define COLOR_RGBA32_GRAY 0x7F7F7FFF // 127 127 127 255
#define COLOR_RGBA32_LIGHT_GRAY 0xBFBFBFFF // 191 191 191 255
#define COLOR_RGBA32_WHITE 0xFFFFFFFF // 255 255 255 255
// Primary/secondary/tertiary
#define COLOR_RGBA32_RED 0xFF0000FF // 255 0 0 255
#define COLOR_RGBA32_ORANGE 0xFF7F00FF // 255 127 0 255
#define COLOR_RGBA32_YELLOW 0xFFFF00FF // 255 255 0 255
#define COLOR_RGBA32_LIME 0x7FFF00FF // 127 255 0 255
#define COLOR_RGBA32_GREEN 0x00FF00FF // 0 255 0 255
#define COLOR_RGBA32_SPRING 0x00FF7FFF // 0 255 127 255
#define COLOR_RGBA32_CYAN 0x00FFFFFF // 0 255 255 255
#define COLOR_RGBA32_SKY 0x007FFFFF // 0 127 255 255
#define COLOR_RGBA32_BLUE 0x0000FFFF // 0 0 255 255
#define COLOR_RGBA32_PURPLE 0x7F00FFFF // 127 0 255 255
#define COLOR_RGBA32_MAGENTA 0xFF00FFFF // 255 0 255 255
#define COLOR_RGBA32_PINK 0xFF007FFF // 255 0 127 255
// Elemental
#define COLOR_RGBA32_JRB_SKY 0x50645AFF // 80 100 90 255
#define COLOR_RGBA32_WATER 0x055096FF // 5 80 150 255
#define COLOR_RGBA32_ICE 0x7D9AD0FF // 125 154 208 255
#define COLOR_RGBA32_LAVA 0x8F0600FF // 143 6 0 255
#define COLOR_RGBA32_SAND 0xDCA973FF // 220 169 115 255
#define COLOR_RGBA32_ELECTRIC 0xFFEE00FF // 255 238 0 255
// Lights
#define COLOR_RGBA32_AMP_LIGHT COLOR_RGBA32_ELECTRIC
#define COLOR_RGBA32_STAR_LIGHT 0xFFF000FF // 255 240 0 255
#define COLOR_RGBA32_TRANSPARENT_STAR_LIGHT 0x0F1973FF // 15 25 115 255 // 0x1E32E6FF // 30 50 230 255
#define COLOR_RGBA32_RED_FLAME_LIGHT 0xFF3200C8 // 255 50 0 200
#define COLOR_RGBA32_BLUE_FLAME_LIGHT 0x6464FFFF // 100 100 255 255
#define COLOR_RGBA32_EXPLOSION_LIGHT 0xFFFF7FFF // 255 255 127 255
// Coins
#define COLOR_RGBA32_COIN_YELLOW_LIGHT 0x7F7F007F // 127 127 0 127
#define COLOR_RGBA32_COIN_BLUE_LIGHT 0x40407F7F // 64 64 127 127
#define COLOR_RGBA32_COIN_RED_LIGHT 0x7F00007F // 127 0 0 127
// Mario body lights - these should match the light groups in actors/mario/model.inc.c
#define COLOR_RGBA32_MARIO_LIGHTS_BLUE 0x0000FF00 // 0 0 255 0
#define COLOR_RGBA32_MARIO_LIGHTS_RED 0xFF000000 // 255 0 0 0
#define COLOR_RGBA32_MARIO_LIGHTS_WHITE 0xFFFFFF00 // 255 255 255 0
#define COLOR_RGBA32_MARIO_LIGHTS_BROWN1 0x721C0E00 // 114 28 14 0
#define COLOR_RGBA32_MARIO_LIGHTS_BEIGE 0xFEC17900 // 254 193 121 0
#define COLOR_RGBA32_MARIO_LIGHTS_BROWN2 0x73060000 // 115 6 0 0
// Debug box
#define COLOR_RGBA32_DEBUG_DEFAULT 0x00FF0000 // 0 255 0 0
#define COLOR_RGBA32_DEBUG_ALPHA 0x0000007F // 0 0 0 127
#define COLOR_RGBA32_DEBUG_POSITION 0x80FFFFFF // 128 255 255 255
#define COLOR_RGBA32_DEBUG_HITBOX 0x800000FF // 128 0 0 255
#define COLOR_RGBA32_DEBUG_HURTBOX 0x8FF00000 // 143 240 0 0
#define COLOR_RGBA32_DEBUG_WARP 0x80FFA500 // 128 255 165 0
#define COLOR_RGBA32_DEBUG_PUPPYVOLUME 0x0000FF00 // 0 0 255 0
#define COLOR_RGBA32_DEBUG_LIGHT 0x08FF00FF // 8 255 0 255
// Color RGB(A) Arrays:
// RGBA [0..255]
#define COLOR_RGBA_NONE { 0x00, 0x00, 0x00, 0x00 } // 0 0 0 0
#define COLOR_RGBA_BLACK { 0x00, 0x00, 0x00, 0xFF } // 0 0 0 255
#define COLOR_RGBA_DARK { 0x3F, 0x3F, 0x3F, 0xFF } // 63 63 63 255
#define COLOR_RGBA_GRAY { 0x7F, 0x7F, 0x7F, 0xFF } // 127 127 127 255
#define COLOR_RGBA_LIGHT { 0xBF, 0xBF, 0xBF, 0xFF } // 191 191 191 255
#define COLOR_RGBA_WHITE { 0xFF, 0xFF, 0xFF, 0xFF } // 255 255 255 255
// Primary/secondary/tertiary
#define COLOR_RGBA_RED { 0xFF, 0x00, 0x00, 0xFF } // 255 0 0 255
#define COLOR_RGBA_ORANGE { 0xFF, 0x7F, 0x00, 0xFF } // 255 127 0 255
#define COLOR_RGBA_YELLOW { 0xFF, 0xFF, 0x00, 0xFF } // 255 255 0 255
#define COLOR_RGBA_LIME { 0x7F, 0xFF, 0x00, 0xFF } // 127 255 0 255
#define COLOR_RGBA_GREEN { 0x00, 0xFF, 0x00, 0xFF } // 0 255 0 255
#define COLOR_RGBA_SPRING { 0x00, 0xFF, 0x7F, 0xFF } // 0 255 127 255
#define COLOR_RGBA_CYAN { 0x00, 0xFF, 0xFF, 0xFF } // 0 255 255 255
#define COLOR_RGBA_SKY { 0x00, 0x7F, 0xFF, 0xFF } // 0 127 255 255
#define COLOR_RGBA_BLUE { 0x00, 0x00, 0xFF, 0xFF } // 0 0 255 255
#define COLOR_RGBA_PURPLE { 0x7F, 0x00, 0xFF, 0xFF } // 127 0 255 255
#define COLOR_RGBA_MAGENTA { 0xFF, 0x00, 0xFF, 0xFF } // 255 0 255 255
#define COLOR_RGBA_PINK { 0xFF, 0x00, 0x7F, 0xFF } // 255 0 127 255
// Elemental
#define COLOR_RGBA_JRB_SKY { 0x50, 0x64, 0x5A, 0xFF } // 80 100 90 255
#define COLOR_RGBA_WATER { 0x05, 0x50, 0x96, 0xFF } // 5 80 150 255
#define COLOR_RGBA_ICE { 0x7D, 0x9A, 0xD0, 0xFF } // 125 154 208 255
#define COLOR_RGBA_LAVA { 0x8F, 0x06, 0x00, 0xFF } // 143 6 0 255
#define COLOR_RGBA_SAND { 0xDC, 0xA9, 0x73, 0xFF } // 220 169 115 255
#define COLOR_RGBA_ELECTRIC { 0xFF, 0xEE, 0x00, 0xFF } // 255 238 0 255
// Lights
#define COLOR_RGBA_AMP_LIGHT COLOR_RGBA_ELECTRIC
#define COLOR_RGBA_STAR_LIGHT { 0xFF, 0xF0, 0x00, 0xFF } // 255 240 0 255
#define COLOR_RGBA_TRANSPARENT_STAR_LIGHT { 0x0F, 0x19, 0x73, 0xFF } // 15 25 115 255 // 0x1E32E6FF // 30 50 230 255
#define COLOR_RGBA_RED_FLAME_LIGHT { 0xFF, 0x32, 0x00, 0xC8 } // 255 50 0 200
#define COLOR_RGBA_BLUE_FLAME_LIGHT { 0x64, 0x64, 0xFF, 0xFF } // 100 100 255 255
#define COLOR_RGBA_EXPLOSION_LIGHT { 0xFF, 0xFF, 0x7F, 0xFF } // 255 255 127 255
#define COLOR_RGBA_COIN_YELLOW COLOR_RGBA_YELLOW
#define COLOR_RGBA_COIN_BLUE { 0x80, 0x80, 0xFF, 0xFF } // 128 128 255 255
#define COLOR_RGBA_COIN_RED COLOR_RGBA_RED
// RGB [0..255]
// Grayscale
#define COLOR_RGB_BLACK { 0x00, 0x00, 0x00 } // 0 0 0
#define COLOR_RGB_DARK { 0x3F, 0x3F, 0x3F } // 63 63 63
#define COLOR_RGB_GRAY { 0x7F, 0x7F, 0x7F } // 127 127 127
#define COLOR_RGB_LIGHT { 0xBF, 0xBF, 0xBF } // 191 191 191
#define COLOR_RGB_WHITE { 0xFF, 0xFF, 0xFF } // 255 255 255
// Primary/secondary/tertiary
#define COLOR_RGB_RED { 0xFF, 0x00, 0x00 } // 255 0 0
#define COLOR_RGB_ORANGE { 0xFF, 0x7F, 0x00 } // 255 127 0
#define COLOR_RGB_YELLOW { 0xFF, 0xFF, 0x00 } // 255 255 0
#define COLOR_RGB_LIME { 0x7F, 0xFF, 0x00 } // 127 255 0
#define COLOR_RGB_GREEN { 0x00, 0xFF, 0x00 } // 0 255 0
#define COLOR_RGB_SPRING { 0x00, 0xFF, 0x7F } // 0 255 127
#define COLOR_RGB_CYAN { 0x00, 0xFF, 0xFF } // 0 255 255
#define COLOR_RGB_SKY { 0x00, 0x7F, 0xFF } // 0 127 255
#define COLOR_RGB_BLUE { 0x00, 0x00, 0xFF } // 0 0 255
#define COLOR_RGB_PURPLE { 0x7F, 0x00, 0xFF } // 127 0 255
#define COLOR_RGB_MAGENTA { 0xFF, 0x00, 0xFF } // 255 0 255
#define COLOR_RGB_PINK { 0xFF, 0x00, 0x7F } // 255 0 127
// Elemental
#define COLOR_RGB_JRB_SKY { 0x50, 0x64, 0x5A } // 80 100 90
#define COLOR_RGB_WATER { 0x05, 0x50, 0x96 } // 5 80 150
#define COLOR_RGB_ICE { 0x7D, 0x9A, 0xD0 } // 125 154 208
#define COLOR_RGB_LAVA { 0x8F, 0x06, 0x00 } // 143 6 0
#define COLOR_RGB_SAND { 0xDC, 0xA9, 0x73 } // 220 169 115
#define COLOR_RGB_ELECTRIC { 0xFF, 0xEE, 0x00 } // 255 238 0
#define COLOR_RGB_COIN_YELLOW COLOR_RGB_YELLOW
#define COLOR_RGB_COIN_BLUE { 0x80, 0x80, 0xFF } // 128 128 255
#define COLOR_RGB_COIN_RED COLOR_RGB_RED
// Lights
#define DEFAULT_LIGHT_AMB 0x7F
#define DEFAULT_LIGHT_COL 0xFE
#define DEFAULT_LIGHT_DIR 0x28
// RGBF [0..1]
#define COLOR_RGBF_WHITE { 1.0f, 1.0f, 1.0f } // 0xFF 0xFF 0xFF | 255 255 255
#define COLOR_RGBF_RED { 1.0f, 0.0f, 0.0f } // 0xFF 0x00 0x00 | 255 0 0
#define COLOR_RGBF_GREEN { 0.0f, 1.0f, 0.0f } // 0x00 0xFF 0x00 | 0 255 0
#define COLOR_RGBF_BLUE { 0.0f, 0.0f, 1.0f } // 0x00 0x00 0xFF | 0 0 255
#define COLOR_RGBF_ERR_DARK_BLUE { 0.0f, 0.0f, 6.0f } // 0x00 0x00 0x5FF? | 0 0 1535?
#define COLOR_RGBF_PINK { 1.0f, 0.0f, 1.0f } // 0xFF 0x00 0xFF | 255 0 255
#define COLOR_RGBF_BLACK { 0.0f, 0.0f, 0.0f } // 0x00 0x00 0x00 | 0 0 0
#define COLOR_RGBF_GREY { 0.6f, 0.6f, 0.6f } // 0x99 0x99 0x99 | 153 153 153
#define COLOR_RGBF_DARK_GREY { 0.4f, 0.4f, 0.4f } // 0x66 0x66 0x66 | 102 102 102
#define COLOR_RGBF_YELLOW { 1.0f, 1.0f, 1.0f } // 0xFF 0xFF 0xFF | 255 255 255