User:Stonestone/PPPNNN: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==0219==
 
===Shape 1===
==Shape 1==
<pre>
<pre>
size(width,height)
size(width,height)
Line 27: Line 27:
rectMode(x) // x=CORNER/CORNERS/CENTER
rectMode(x) // x=CORNER/CORNERS/CENTER
</pre>
</pre>
==DATA 1==
<pre>
int x = 整数;
float y = 分数;
boolean b = true/false;
</pre>
==Math 1==
<pre>
</pre>
<pre></pre>

Latest revision as of 23:21, 19 February 2016

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