【发布时间】:2018-12-16 05:07:55
【问题描述】:
这是我当前的项目代码:
size(500,500);
background(255, 255, 255);
fill(250,0,0);
ellipse(150, 230, 100, 200);
fill(10,0,0);
ellipse(180, 233, 30, 30);
fill(10,0,0);
ellipse(120, 233, 30, 30);
fill(250,250,250);
ellipse(120,233,10,20);
fill(250,250,250);
ellipse(180,233,10,20);
arc(150, 280, 60, 90, 0, PI/1);
fill(250,0,0);
rect(100,330,100,100);
fill(10,10,10);
rect(50,330,50,50);
fill(10,10,10);
rect(200,330,50,50);
fill(250,0,0);
rect(90,430,50,100);
fill(250,0,0);
rect(160,430,50,100);
fill(10,0,0);
triangle(60, 300, 101, 10, 50, 450);
有人可以提供有关如何在死侍角色旁边绘制基本 5 角星的代码吗? (在大小为 500,500 的维度内)
【问题讨论】:
-
请注意,Processing.js 已于 2 周前(由我)存档,不再是一个活动项目。对于新代码,我建议改用 p5js。