Less Code with ChatGPT(8)
-
ChatGPT + Processing 으로 그림따라그리기
RunCode>> https://youtu.be/QipAV2D8sp8 CODE small particles>> PImage portrait; ArrayList particles = new ArrayList(); int numParticles = 1000; void setup() { size(1536, 1024); portrait = loadImage("portrait.jpg"); portrait.resize(width, height); portrait.loadPixels(); for (int i=0; i width) { x = 0; } } void display() { fill(col); noStroke(); ellipse(x, y, size, size); } } CODE speed speed = ran..
2023.04.25 -
#5. Processing -Variations
Code>> //Set up drawing function void setup() { size(1000, 700, P3D); background(200,0,0); lights(); } //Draw loop void draw(){ stroke(0);//중심큐브 fill(227,206,240); translate(width/2, height/2, 0); rotateX(frameCount * 0.02); rotateY(frameCount * 0.02); box(200); stroke(0);//움직이는 100 사이즈 큐브 fill(100,200,255); translate(width/10, height/10, 10); rotateX(frameCount * 0.01); rotateY(frameCount * 0.0..
2023.04.25 -
ChatGPT + Processing 으로 3D 그림 만들기 Interactive Digital Art
https://youtu.be/PK0xyC7iMYo 움직이는 3D 박스 1개 만들기 Code>> //Set up drawing function void setup() { size(600, 600, P3D); } //Draw loop void draw(){ background(100); translate(width/2, height/2, 0); rotateX(frameCount * 0.01); rotateY(frameCount * 0.01); box(100); } 여러개 움직이는 3D 박스 만들기 Code>> //Set up drawing function void setup() { size(600, 600, P3D); } //Draw loop void draw(){ background(100); trans..
2023.04.24 -
#4. Processing -Variations
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(50..
2023.04.24 -
#3. Processing - Interact/Animate
Input is used to animate shapes. Unlike the earlier examples that execute once and then stop, the code in this section runs continuously. The setup() and draw() functions are introduced to enable continuous execution. The location of the cursor on screen controlled by a mouse or finger is used to set the position of ellipses and rectangles. The x-coordinate of the cursor is captured as the mouse..
2023.04.24 -
#2. Processing -Colors
-Learn the Processing #Colors https://hello.processing.org/editor/ Processing Hour of Code | Editor hello.processing.org Code>> size(500,300) background(216,133,224); ellipse(250,150,100,100);//bigface ellipse(180,125,50,50);//earl ellipse(320,125,50,50);//earr ellipse(230,140,30,30);//eyel ellipse(270,140,30,30);//eyer stroke(0); fill(128); ellipse(250,170,20,30);//mouth ellipse(230,140,10,10);..
2023.04.23 -
Using AI To Build A Game From Scratch (NO Experience)
https://youtu.be/IyKKhxYJ4U4 My Game >>
2023.04.22 -
#1. Processing - Shapes
-Processing is a visual programming language that allows you to sketch with codes, so to speak. -Processing is based on Java, but because program elements in Processing are fairly simple, you can learn to use it even if you don't know any Java. If you're familiar with Java, it's best to forget that Processing has anything to do with Java for a while, until you get the hang of how the API works. ..
2023.04.22