processing
processingを使ってはじめて描いたもの
2013.04.30
↓コード
//コロコロ
//----------------------
size(600,300);
//線を滑らかに
smooth();
//背景
background(59,165,183);//青
//白線(四角)
noStroke();
fill(255);//白
quad(0,300,600,300,600,100,0,200);
//下部(三角)
noStroke();
fill(245,231,79);//
triangle(100,300,600,300,600,120);
//----------------------
//コロコロ本体
//線@
strokeWeight(10);//太さ
stroke(255);//白
line(100,100,80,150);
//丸(奥、青)
noStroke();
fill(59,165,183);//青
ellipse(80,150,50,50);
//筒
strokeWeight(30);//太さ
stroke(59,165,183);//青
line(150,140,230,190);
//丸(手前)
strokeWeight(2);//太さ
stroke(245,231,79);//線、黄
fill(255);//塗りつぶし、白
ellipse(180,130,50,50);
//線A、B、C
strokeWeight(10);//太さ
stroke(255);//白
line(100,100,200,180);//A
line(200,180,180,130);//B
line(150,140,170,190);//C
//丸(手前、黄)
noStroke();
fill(59,165,183);//黄
ellipse(180,130,50,50);
//線(とって)
strokeWeight(80);//太さ
stroke(255);//白
line(150,140,204,0);
//----------------------
//以上
BACK