Skip to content

Instantly share code, notes, and snippets.

@grifdail
Created June 6, 2017 14:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grifdail/9b9cf9e52188f5f142f89533916e8f96 to your computer and use it in GitHub Desktop.
Save grifdail/9b9cf9e52188f5f142f89533916e8f96 to your computer and use it in GitHub Desktop.
pico8colors.pde
// Pico 8 colors for processing
color BLACK = #000000;
color DARK_BLUE = #1D2B53;
color DARK_PURPLE = #7E2553;
color DARK_GREEN = #008751;
color BROWN = #AB5236;
color DARK_GRAY = #5F574F;
color LIGHT_GRAY = #C2C3C7;
color WHITE = #FFF1E8;
color RED = #FF004D;
color ORANGE = #FFA300;
color YELLOW = #FFEC27;
color GREEN = #00E436;
color BLUE = #29ADFF;
color INDIGO = #83769C;
color PINK = #FF77A8;
color PEACH = #FFCCAA;
color[] colors = {BLACK,DARK_BLUE,DARK_PURPLE,DARK_GREEN,BROWN,DARK_GRAY,LIGHT_GRAY,WHITE,RED,ORANGE,YELLOW,GREEN,BLUE,INDIGO,PINK,PEACH};
color randomColor() {
return colors[int(random(colors.length))];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment