Tuesday, October 23, 2018

Messing with p5.js

function setup() {
  createCanvas(800, 800);
}

function draw() {
background(204);
rect(100, 100, 300, 300);
strokeWeight(4);
rect(125, 250, 100, 100);
rect(300, 115, 75, 100);
ellipse(360, 150, 10, 10);
triangle(400, 410, 100, 410, 250, 525);
line(50,100, 470, 400);
}

No comments:

Post a Comment