xxxxxxxxxx
25
function setup () {
createCanvas (400, 400)
noStroke () // all shapes will have no outline
}
function draw () {
background ('beige')
fill ('pink')
// using a css colour
square (150, 150, 100)
// square (x, y, side size)
fill ( 'rgb(40,50,100)')
// using RGB
circle (200, 60, 100)
// circle (x, y, diameter size)
fill ('#E181E2')
// using HEX codes
triangle (150, 380, 200, 280, 250, 380)
// triangle (x1 first point, y1, x2 second point, y2, x3 third point, y3)
}