Professional Documents
Culture Documents
w01!03!2D Primitives
w01!03!2D Primitives
01
(x, y)
(x1, y1)
* Value scale of red, green, blue, alpha and grey_level ranges from
0 (darkest) to 255 (brightest).
(x1, y1)
(x4, y4)
(x2, y2)
Processing Code
(x3, y3)
stroke(0);
triangle(x1, y1, x2, y2, x3, y3);
Draws a triangle with the three
vertex positions passed as
arguments.
(x1, y1)
(x3, y3)
ll(215,223,35);
strokeWeight(1);
strokeWeight(10);
(x2, y2)
sa
h
ea
w
ll(255);
stroke(255,0,0);
noFill();
stroke(255,0,0);
strokeWeight(10);
Basic geometry
and graphics primitive shapes
(x, y)
ll(255);
noStroke();
height
(x, y)
width
strokeWeight();
Sets the width of the stroke used for
lines, points, and the border around
shapes. All widths are set in units of
pixels.