Created
November 19, 2016 19:40
-
-
Save DanieleMaselli/dfc0dca4f63547d195554909d0fc231b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function setup() { | |
| createCanvas(800, 800); | |
| colorMode(HSB); | |
| background(196, 37, 90); | |
| } | |
| var initialOffset = 10; | |
| var offset = 25; | |
| var globalCircleSize = 15; | |
| var reductionPercent = 5; // % | |
| function draw() { | |
| noStroke(); | |
| circleSize = globalCircleSize; | |
| for(var y = initialOffset; y < height; y = y + offset ){ | |
| for(var x = initialOffset; x < width; x = x + offset){ | |
| ellipse(x, y, circleSize, circleSize); | |
| } | |
| circleSize = circleSize * 0.95; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment