-
-
Save akinoniku/40c43702cc4f171a111185418cb3437d to your computer and use it in GitHub Desktop.
p5
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
function setup() { | |
createCanvas(801, 801); | |
background(255); | |
} | |
function draw() { | |
//rotate(radians(0)); | |
for (let i = 0; i <= width; i += 100) { | |
line(i, 0, i, height); | |
} | |
for (let i = 0; i <= height; i += 100) { | |
line(0, i, width, i); | |
let randomX = random(0, width); | |
let randomY = random(0, height); | |
let randomA = random(0, 100); | |
ellipse(randomX, randomY, random(100)); | |
noLoop(); | |
} | |
for (let i = 0; i <= height; i += 100) { | |
let randomX = random(0, width); | |
let randomY = random(0, height); | |
let randomA = random(-50, 50); | |
square(randomX, randomY, random(50)); | |
line(randomX, randomY, randomX+randomA, randomY+randomA); | |
rotate(random(0.25)); | |
noLoop(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment