User:Stonestone/PPPNNN

From XPUB & Lens-Based wiki

Shape 1

size(width,height)
point(x,y)
line(x1,y1,x2,y2)
triangle(x1,y1,x2,y2,x3,y3)
quad(x1,y1,x2,y2,x3,y3)
rect(x,y,width,height)
ellipse(x,y,width,height)
bezier(x1,y1,cx1,cy1,cx2,cy2,x2,y2)

fill(x) // x=0-255
stroke(x) // x=0-255
fill(x,y) // y=0-255 0=0% opacity 255=100% opacity

noStroke()
noFill()

smooth()
noSmooth()

strokeWeight(x) // default = 1
strokeCap // x=ROUND/PROJECT/SQUARE
strokeJoin // x=BEVEL/MITER/ROUND
ellipseMode(x) // x=CENTER/RADIUS/CORNER/CORNERS
rectMode(x) // x=CORNER/CORNERS/CENTER

DATA 1

int x = 整数;
float y = 分数;
boolean b = true/false;

Math 1