#4. Processing -Variations
2023. 4. 24. 17:13ㆍLess Code with ChatGPT/Processing
void setup() {
size(600,400);
}
void draw() {
background(47,39,103);
fill(41,36,36);
stroke(68,64,64);
rect(50,100,-50,150);
rect(95,130,-45,150);
rect(155,80,-60,300);
rect(190,110,-5,400);
rect(200,150,-25,400);
rect(220,180,-65,400);
rect(269,96,-49,400);
rect(310,145,-41,400);
rect(335,70,-20,400);
rect(350,100,-50,400);
if (mousePressed){
fill(215,215,67);
ellipse(300,100,50,50);
ellipse(500,80,100,100);
}else
fill(223,57,57);
stroke(233,38,38);
rect(115,100,-5,8);
rect(115,120,-5,8);
ellipse(300,300,50,50);
'Less Code with ChatGPT > Processing' 카테고리의 다른 글
#5. Processing -Variations (0) | 2023.04.25 |
---|---|
ChatGPT + Processing 으로 3D 그림 만들기 Interactive Digital Art (0) | 2023.04.24 |
#3. Processing - Interact/Animate (0) | 2023.04.24 |
#2. Processing -Colors (0) | 2023.04.23 |
#1. Processing - Shapes (0) | 2023.04.22 |