top of page
Search
  • Writer's pictureDavid McDonald

Kirby p5.js drawing

For my first p5.js drawing I decided to do something simple and made a simple face based on kirby. I had trouble figuring out how to change the background color but after that I just played around to see what values affect things like position.


The code I used is below:

function setup() {

createCanvas(400, 400);

}

function draw() {

background('#fae');

fill('#222222')

rect(100,100,30,100)

rect(200,100,30,100)

fill('ffffff')

quad(48, 31, 86, 20, 69, 63, 30, 76);

quad(70,80,40,100,80,120,80,80)

fill('red')

ellipse(170,260,55, 100);




38 views0 comments

Recent Posts

See All

Interactive drawing Program

At first I wanted to edit the paddleball code to add a function like a boost button, but I ended up preferring the mouseX and mouseY functions so I decided to focus on an interactive drawing program.

Post: Blog2_Post
bottom of page