Vocabulaire p5.js


[←] Retour

setup()

draw()

createCanvas()

background()

ellipse(x, y, d)

line(x1, y1, x2, y2)

rect(x, y, l, h)

triangle(x1, y1, x2, y2, x3, y3)

mouseX

mouseY

mouseIsPressed

fill()

stroke()

strokeWeight()

text('text', x, y)

textSize(px)

width

height

random(min, max)

noLoop()

for (let i = 0; i < 100; i++) { // code à répéter }