User:Stonestone/PPPNNN: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "==0219== ===Shape 1=== <pre> 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,heigh...")
 
No edit summary
Line 11: Line 11:
bezier(x1,y1,cx1,cy1,cx2,cy2,x2,y2)
bezier(x1,y1,cx1,cy1,cx2,cy2,x2,y2)


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


noStroke()
noStroke()
Line 21: Line 21:
noSmooth()
noSmooth()


strokeWeight(x) //default = 1
strokeWeight(x) // default = 1
strokeCap // x=ROUND/PROJECT/SQUARE
strokeCap // x=ROUND/PROJECT/SQUARE
strokeJoin // x=BEVEL/MITER/ROUND
strokeJoin // x=BEVEL/MITER/ROUND

Revision as of 00:06, 20 February 2016

0219

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