// Example 1 - Lime Triangle on Red background function setup() { // canvas size of 640 by 480 with red background createCanvas(640, 480); background('red'); // stroke of blue with weight of 8, and fill of lime stroke('blue'); strokeWeight(8); fill('lime'); // triangle with points of 3 vertices triangle(50, 50, 640-50, 50, 640-50, 480-50); }
No comments:
Post a Comment