text 旋转arcs.pde
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 旋转arcs.pde相关的知识,希望对你有一定的参考价值。
int px = 300;
int py = 300;
int lar = 100;
int alt = 100;
int ang = 1;
int ang2 = 1;
int ang3 = 1;
void setup(){
size(600,600);
background(0);
loop();
}
void draw(){
background(0);
stroke(255,255,255);
strokeWeight(10);
smooth();
noFill();
ang += 1;
ang2 += 2;
ang3 += 3;
/**
stroke(255);
arc(px,py,lar,alt, radians(ang), radians(ang+300));
stroke(128,0,128);
arc(px,py,lar+30,alt+30, radians(-ang2), radians(-ang2+150));
stroke(70,0,130);
arc(px,py,lar+60,alt+60, radians(ang3), radians(ang3+200));
stroke(0,0,255);
arc(px,py,lar+90,alt+90, radians(-ang2), radians(-ang2+300));
stroke(0,255,0);
arc(px,py,lar+120,alt+120, radians(ang), radians(ang+100));
stroke(255,255,0);
arc(px,py,lar+150,alt+150, radians(-ang3), radians(-ang3+300));
stroke(255,165,0);
arc(px,py,lar+180,alt+180, radians(ang), radians(ang+150));
stroke(255,0,0);
arc(px,py,lar+210,alt+210, radians(-ang2), radians(-ang2+200));
**/
stroke(255);
arc(px,py,lar,alt, radians(ang), radians(ang+300));
arc(px,py,lar+30,alt+30, radians(-ang2), radians(-ang2+150));
arc(px,py,lar+60,alt+60, radians(ang3), radians(ang3+200));
arc(px,py,lar+90,alt+90, radians(-ang2), radians(-ang2+300));
arc(px,py,lar+120,alt+120, radians(ang), radians(ang+100));
arc(px,py,lar+150,alt+150, radians(-ang3), radians(-ang3+300));
arc(px,py,lar+180,alt+180, radians(ang), radians(ang+150));
arc(px,py,lar+210,alt+210, radians(-ang2), radians(-ang2+200));
}
以上是关于text 旋转arcs.pde的主要内容,如果未能解决你的问题,请参考以下文章
text arcs.pde中的随机弧
text 旋转空间junk.pde
text 旋转fish.pde
text 随机放置旋转gloves.pde
text 旋转木马滑块
text 旋转木马模板