shapeprimitives.pde

来自「This is processing for java examples.」· PDE 代码 · 共 22 行

PDE
22
字号
/** * Shape Primitives.  *  * The basic shape primitive functions are triangle(), * rect(), quad(), and ellipse(). Squares are made * with rect() and circles are made with * ellipse(). Each of these functions requires a number * of parameters to determine the shape's position and size.  */ size(200, 200);smooth(); background(0);noStroke();fill(226);triangle(10, 10, 10, 200, 45, 200);rect(45, 45, 35, 35);quad(105, 10, 120, 10, 120, 200, 80, 200);ellipse(140, 80, 40, 40);triangle(160, 10, 195, 200, 160, 200); 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?