Created
September 8, 2019 20:15
-
-
Save Sardtok/8f6a380754c303dcd8090978da02213c to your computer and use it in GitHub Desktop.
Tre triangler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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