top of page
Search

Kirby p5.js drawing

  • Writer: David McDonald
    David McDonald
  • Oct 21, 2019
  • 1 min read

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);




 
 
 

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...

 
 
 

Comentários


Post: Blog2_Post

5164069451

  • Facebook
  • Twitter
  • LinkedIn

©2019 by Davids Blog. Proudly created with Wix.com

bottom of page