Skip to content

Instantly share code, notes, and snippets.

@Sardtok
Created September 8, 2019 20:15
Show Gist options
  • Save Sardtok/8f6a380754c303dcd8090978da02213c to your computer and use it in GitHub Desktop.
Save Sardtok/8f6a380754c303dcd8090978da02213c to your computer and use it in GitHub Desktop.
Tre triangler
color bg;
void setup() {
size(400, 400);
colorMode(HSB, 360, 100, 100);
bg = color(0, 100, 100);
}
void draw() {
background(bg);
triangle(125, 200,
50, 350,
200, 350);
triangle(275, 200,
200, 350,
350, 350);
triangle(200, 50,
125, 200,
275, 200);
bg = color(hue(bg) + 1, 100, 100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment