text explodie circle.pde
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text explodie circle.pde相关的知识,希望对你有一定的参考价值。
int i = 0, j =0, k =0, y=0, r, degreepoint = 0, d1, d2;
int angle1, point;
int radius1, radius2;
int diffValue;
void setup()
{
size(4000, 4000);
background(8, 65, 92);
noLoop();
}
void draw() {
strokeWeight(8);
stroke(235, 186, 185);
//translate(width*0.25, height*0.25);
pushMatrix();
translate(width*.5, width*.5);
for (k = 0; k < 440; k++) {
angle1 = int(random(360));
radius1 = int(random(70*5, 290*5));
radius2 = int(random(80*5, 310*5));
if (radius1 > radius2){
diffValue = radius1-radius2;
} else {
diffValue = radius2-radius1;
}
if (diffValue < 20*5){
radius2 += 30*5;
}
line(radius1*cos(radians(angle1)), radius1*sin(radians(angle1)), radius2*cos(radians(angle1)), radius2*sin(radians(angle1)));
}
popMatrix();
save("explody scircle.png");
print("done");
}
以上是关于text explodie circle.pde的主要内容,如果未能解决你的问题,请参考以下文章
库魔法。 text/plain 而不是 text/javascript text/css
<!-- text --> 和 /* text */ 注释有啥区别?
VB中 如何复制Text1.text的字体到剪贴板? 如何剪切?
VB 加减乘除
text-decoration:[ text-decoration-line ] || [ text-decoration-style ] || [ text-decoration-color ]
.text 和 .get_text() 之间的区别