processing example |
|||||
---|---|---|---|---|---|
작성자 | 김용남 | 등록일 | 18.11.01 | 조회수 | 97 |
size(1000,700); background(222,86,108); strokeWeight(4); // Thicker line(500, 100, 580, 132); line(720, 195, 790,230); line(475, 540, 580,590); noStroke(); fill(255,236,215); quad(668,500,500,500,1200,0,1300,0); noStroke(); color c = color(0, 106, 235, 102); fill(c); rect(0, 15, 35, 70); float value = alpha(c); // Sets 'value' to 102 fill(value); rect(30, 15, 35, 70); noStroke(); color C = color(0,106,235,102); fill(c); rect(30, 15, 35, 70); float VALUE = alpha(c); // Sets 'value' to 102 fill(value); rect(60, 15, 35, 70); noStroke(); fill(255,242,223); rect(80,130,200,100,10); noStroke(); fill(138,59,64); quad(510,165,580,470,630,410,570,140); quad(670,500,582,580,680,300,780,240); fill(255,255,255); quad(380,150,460,185,570,140,485,108); quad(590,250,680,300,780,240,700,200); fill(222,86,108); quad(460,185,520,500,590,480,510,165); fill(254,184,88); quad(380,150,480,530,540,560,460,185); quad(582,580,505,542,590,250,680,300); fill(245,245,245); ellipse(160,310,50,140); ellipse(230,310,50,140); fill(255,209,232); ellipse(160,320,30,120); ellipse(230,310,30,120); fill(245,245,245); ellipse(200,400,200,140); fill(0,0,0); rect(130,350, 55, 45, 7); rect(210,350, 55, 45, 7); fill(255,255,255); rect(140,360, 30, 3, 7); rect(140,370, 30, 3, 7); rect(140,380, 30, 3, 7); rect(220,360, 30, 3, 7); rect(220,370, 30, 3, 7); rect(220,380, 30, 3, 7); beginShape(); vertex(0, 600); vertex(40, 600); vertex(40, 650); vertex(80, 650); vertex(80, 700); vertex(0, 700); endShape(CLOSE); beginShape(); vertex(1000, 600); vertex(960, 600); vertex(960, 650); vertex(920, 650); vertex(920, 700); vertex(1000, 700); endShape(CLOSE); fill(144,211,219); rect(0,0,1000,50); rect(0,650,1000,700); textSize(32); text("good", 145, 190); fill(0, 102, 153); text("good", 145, 190); fill(0, 102, 153, 51); text("good", 145, 220); fill(246,25,99); ellipse(197,400,30,30); fill(255,31,73); ellipse(197,440,60,20); stroke(255); color from = color(204, 102, 0);
color to = color(0, 102, 153); color interA = lerpColor(from, to, .33); color interB = lerpColor(from, to, .65); fill(from); rect(915, 50, 20, 60); fill(interA); rect(935, 50, 20, 60); fill(interB); rect(955, 50, 20, 60); fill(to); rect(975, 50, 20, 60); |
이전글 | packman source |
---|---|
다음글 | processing lion drawing |