2023. 4. 22. 18:00ㆍLess Code with ChatGPT/Processing
-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.
-Processing is a flexible software sketchbook and a language for learning how to code. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology.
- Open Visual Studio Code.
- Open the Command Pallet ( CTRL+SHIFT+P for Windows/Linux or CMD+SHIFT+P on Mac) enter the command “Install Extension”
- Search for “Processing Language” and click on this extension.
- Restart Visual Studio Code.
-Learn the Processing #Shapes
Processing Hour of Code | Editor
hello.processing.org
Code>>
rect(10,80,450,200);
rect(400,350,-350,-250);
rect(100,50,200,200);
rect(200,200,10,10);
rect(80,330,-12,-18);
rect(330,140,5,50);
ellipse(250,200,50,200);
ellipse(250,150,450,10);
ellipse(100,350,5,30);
Run Code>>
Meaning>>
-rect(10,80,450,200);
직사각형( 왼쪽위시작점x, y, 도형넓이, 높이);
-ellipse(250,200,50,200);
-타원형 ( 중심점x, y, 도형넓이, 높이);
-제일 마지막 코드가 최상위의 레이어가 됨
-기본 도형은 불투명
Shape Primitives>>
https://processing.org/examples/shapeprimitives.html
Shape Primitives / Examples
The basic shape primitive functions are triangle(), rect(), quad(), ellipse(), and arc(). Squares are made with rect() and circles are made with ellipse(). Each of these functions requires a number of…
processing.org
'Less Code with ChatGPT > Processing' 카테고리의 다른 글
#5. Processing -Variations (0) | 2023.04.25 |
---|---|
ChatGPT + Processing 으로 3D 그림 만들기 Interactive Digital Art (0) | 2023.04.24 |
#4. Processing -Variations (0) | 2023.04.24 |
#3. Processing - Interact/Animate (0) | 2023.04.24 |
#2. Processing -Colors (0) | 2023.04.23 |