Processing org Java Lab org Augmented Shadow by
Processing. org 자바실험실 Java. Lab. org 이동준
Augmented Shadow by 문준용
Pop the Balloon by 이동준
자바실험실 Java. Lab. org
전체 화면을 사용할 것임 void setup() { full. Screen(); } void draw() { }
시간 표시 void setup() { full. Screen(); } void draw() { text(hour(), width/2, height/2); }
시간: 분: 초 표시 void setup() { full. Screen(); } void draw() { text(hour() + ": " + minute() + ": " + second(), width/2, height/2); }
텍스트 크기 조절 void setup() { full. Screen(); } void draw() { text. Size(100); text(hour() + ": " + minute() + ": " + second(), width/2, height/2); }
배경 색 설정 void setup() { full. Screen(); } void draw() { background(0); text. Size(100); text(hour() + ": " + minute() + ": " + second(), width/2, height/2); }
텍스트 위치 조절 void setup() { full. Screen(); } void draw() { background(0); text. Size(100); text. Align(CENTER, CENTER); text(hour() + ": " + minute() + ": " + second(), width/2, height/2); }
기초 골격 void setup() { full. Screen(); } void draw() { background(0); fill(255); }
매트릭스 사용 void setup() { full. Screen(); } void draw() { background(0); fill(255); push. Matrix(); pop. Matrix(); }
기초 골격 void setup() { full. Screen(); } void draw() { background(0); fill(255); push. Matrix(); translate(width/2, height/2); ellipse(0, 0, 800); pop. Matrix(); }
void setup() { full. Screen(); } void draw() { background(0); fill(255); push. Matrix(); translate(width/2, height/2); ellipse(0, 0, 800); push. Matrix(); pop. Matrix(); }
void setup() { full. Screen(); } void draw() { background(0); fill(255); push. Matrix(); translate(width/2, height/2); ellipse(0, 0, 800); push. Matrix(); line(0, 0, 0, -200); pop. Matrix(); }
void setup() { full. Screen(); } void draw() { background(0); fill(255); push. Matrix(); translate(width/2, height/2); ellipse(0, 0, 800); push. Matrix(); rotate(1); line(0, 0, 0, -200); pop. Matrix(); }
void setup() { full. Screen(); } void draw() { background(0); fill(255); push. Matrix(); translate(width/2, height/2); ellipse(0, 0, 800); push. Matrix(); rotate(map(hour(), 0, 12, 0, TWO_PI)); line(0, 0, 0, -200); pop. Matrix(); }
void setup() { full. Screen(); } void draw() { background(0); fill(255); push. Matrix(); translate(width/2, height/2); ellipse(0, 0, 800); push. Matrix(); rotate(map(hour(), 0, 12, 0, TWO_PI)); line(0, 0, 0, -200); pop. Matrix(); push. Matrix(); rotate(map(minute(), 0, 60, 0, TWO_PI)); line(0, 0, 0, -300); pop. Matrix(); }
- Slides: 24