Skip to content

Instantly share code, notes, and snippets.

@villares
Created March 26, 2018 11:09
Show Gist options
  • Save villares/c10baaaf958cdd0f18d15e3dc92febf5 to your computer and use it in GitHub Desktop.
Save villares/c10baaaf958cdd0f18d15e3dc92febf5 to your computer and use it in GitHub Desktop.
color wrong_orange = color(24, 100, 100);
color get_orange(){
return color(24, 100, 100);
}
void setup(){
colorMode(HSB, 360, 100, 100);
color correct_orange = get_orange();
background(116, 0, 13);
size(200, 200, FX2D);
fill(wrong_orange);
rect(0,0,50,50);
fill(correct_orange);
rect(50, 0, 50, 50);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment