Totoro source processing |
|||||
---|---|---|---|---|---|
작성자 | 김용남 | 등록일 | 18.10.25 | 조회수 | 52 |
final color PAPER = color(90, 85, 80); final color INK1 = color(240); final color INK2 = color(30); final color INK3 = color(230, 210, 170); void setup() { size(480, 640); noLoop(); } void draw() {
final float S = min(width, height); final float U = 0.002;
translate(0.50*width, 0.25*height); scale(S);
background(PAPER);
noStroke();
fill(INK1); ellipse(-0.30, 0.0, 0.2, 0.2); ellipse( 0.30, 0.0, 0.2, 0.2);
fill(INK2); ellipse(-0.25, 0.0, 0.1, 0.1); ellipse( 0.25, 0.0, 0.1, 0.1); ellipse(0.0, 0.05, 0.1, 0.02); ellipse(0.0, 0.06, 0.03, 0.02);
fill(INK3); ellipse(0.0, 1.0, 1.5, 1.5);
fill(PAPER); ellipse( 0.0, 0.45, 0.2, 0.2); fill(INK3); ellipse( 0.0, 0.48, 0.3, 0.2);
fill(PAPER); ellipse(-0.2, 0.55, 0.2, 0.2); ellipse( 0.2, 0.55, 0.2, 0.2); fill(INK3); ellipse(-0.2, 0.58, 0.3, 0.2); ellipse( 0.2, 0.58, 0.3, 0.2);
save("tonari-no-totoro.png"); } |
이전글 | spiderman processing source |
---|---|
다음글 | 엑셀 실습 파일 |