📄 pointslines.pde
字号:
/** * Points and Lines. * * Constructing a simple dimensional form with lines and rectangles. * Changing the value of the variable 'd' scales the image. * The four variables set the positions based on the value of 'd'. */ int d = 40;int p1 = d;int p2 = p1+d;int p3 = p2+d;int p4 = p3+d;size(200, 200);background(0);// Draw gray boxstroke(153);line(p3, p3, p2, p3);line(p2, p3, p2, p2);line(p2, p2, p3, p2);line(p3, p2, p3, p3);// Draw white pointsstroke(255);point(p1, p1);point(p1, p3); point(p2, p4);point(p3, p1); point(p4, p2);point(p4, p4);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -