Beep8 logo

Color Palette Documentation

Beep8 uses a defined color palette to maintain a consistent 8-bit aesthetic across games. The colors are defined in the beep8.CONFIG.COLORS array, which contains hexadecimal color values.

Since it’s javascript you can modify the array to fit however if you want to be a true Beep8 developer you should stick to the defined colors.

The Color Palette

The complete color palette is below. You can use these colors in your game by referencing their index in the array.

beep8.color( fg, bg );

Where fg is the foreground color index and bg is the background color index.

Color Scheme Generator

Just for fun, here’s a simple color scheme generator that randomly selects three colors from the Beep8 palette and displays them as a “slot machine” style game. Click the button to spin and see your color scheme!