Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Day 1
Search
Taeyoon Choi
August 17, 2016
0
580
Day 1
Taeyoon Choi
August 17, 2016
Tweet
Share
More Decks by Taeyoon Choi
See All by Taeyoon Choi
Prosthetics — Adaptation
tchoi8
0
86
Artist Talk at ITP
tchoi8
0
110
daum
tchoi8
0
650
workshop4
tchoi8
0
570
day3
tchoi8
0
320
Day2
tchoi8
0
480
Experimental pedagogy
tchoi8
0
250
Unlearning disability
tchoi8
0
2.5k
This talk is not about privilege but about access.
tchoi8
0
72
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
430
65k
What's in a price? How to price your products and services
michaelherold
246
12k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
Designing for humans not robots
tammielis
253
25k
For a Future-Friendly Web
brad_frost
179
9.8k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.3k
Building an army of robots
kneath
306
45k
The Language of Interfaces
destraynor
158
25k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Transcript
코드란 무엇인가? 1. 창문과 들판 2. 구두점과 여백 3. 좌표
4. 점과 선 5. 반복과 조건 SeMA 비엔날래 미디어시티서울 2016 / 불확실한 학교
코드? 지시어 Code? Instruction
৬:Mediacityseoul_2016 ࠺ߣഐ: mcs123456789 IUUQVODFSUBJOUZTDIPPMPSHEBZ
1. 창문과 들판 window and field
None
HTML, CSS, JavaScript 에이치티엠엘, 씨에스에스, 자바스크립트
None
파이어폭스 * 오픈소스 브라우저 Opensource browser
p5.js: 피파이브 제이에스 자바스크립트
실행 버튼 play p5.js 에디터
실행 정지 무효 다시 처음부터 p5.js 웹 에디터
1. 함수: 상자 函 + 숫자 數 2. 숫자가 들어있는
상자 function
function setup() 셋업 프로그램 설정 펑션: 함수
2. 구두점과 여백 punctuation and blank space
function setup() 소괄호 퍼렌터시스 parenthesis
전달인수, 아규먼트 argument ( )
소괄호 입력
중괄호 컬리 브레이스 Curly brace function setup(){ }
두개의 중괄호 사이에 지시문statement이 들어간다 { }
여러개의 지시문을 포함하기도 한다. } 지시문 ; { 지시문 ;
지시문 ;
중괄호 입력
function setup(){ createCanvas(250,250); } 캔버스를 만든다 세미콜론 대문자 (x축, y축)
쎄미콜론 한줄의 지시문이 끝남을 표시 ;
function setup(){ createCanvas(250,250); background(0); } 백그라운드: 배경색 0~255 사이의 수로
바꿔보세요
3. 좌표 coordinates
일반적인 좌표
x축 0 10 y축 좌표 0 10
캔버스 canvas x축 y축 0 0 250 250
None
그림 그리는 로봇 몸 동작으로 파트너에게 지시한다. ← 왼쪽,↑ 위로,
→ 오른쪽, ↓ 아래로 ⇊ 점프 fill 두명이 짝을 지어 번갈아 하는 놀이
4. 점과 선 dot and line
셋업 드로우
햄스터 휠 function draw()
function draw(){ point(10,10); } 포인트:점 (X축 좌표, Y축 좌표) 4-1
점
function setup(){ createCanvas(250,250); } function draw(){ point(10,10); point(200,200); } 4-2
점 두개
function draw(){ line(10,10,170,20); } 라인 = 선 (x1, y1,
x2, y2) x1, y1 x2, y2 4-3 선
strokeWeight(3); 굵기 값 획 굵기 대문자 4-4 선의 굵기
function setup(){ createCanvas(250,250); } function draw(){ strokeWeight(2); line(10,10,240,230); } 4-5
선의 굵기 값을 바꿔보세요
stroke(255,0,0); (Red, Green, Blue) 스트로크, 획 4-5 선의 색
function draw(){ stroke(255,0,0); strokeWeight(2); line(10,10,300,300); } (Red, Green, Blue)
4-5 선의 색
ellipse(100,100,100,100); 4-6 원
ellipse(100,100,10,10); 폭, 높이 엘립스, 원 X축, Y축 4-6 원 100
100 10 10
rect(100,100,100,100); rectangle: 직사각형 4-7 사각형
rect(100,100,100,100); 폭, 높이 사각형 rectangle X축, Y축
fill(0); fill(255,0,0); 색 칠하기 흑백 컬러 4-5 색
function draw() { fill(255,0,0); ellipse(100,100,100,100); } 원에 색 칠하기 4-5
색
function draw() { fill(255,0,0); noStroke(); ellipse(100,100,100,100); } 노 스트로크 4-5
색
5. 반복과 조건 repetition and condition
입력
function setup(){ createCanvas(600,600); } function draw(){ ellipse(mouseX,mouseY,10,10); } 5-1
마우스 위치 입력 x축 마우스 위치, y축 마우스 위치
만약에 거짓 참 지시어
if(mouseIsPressed){ } 5-2 조건문 햄버거를 먹자; 마우스를 클릭하면
function draw(){ if(mouseIsPressed){ ellipse(mouseX,mouseY,10,10); } } 조건 성립시에만 반복 5-2
마우스를 클릭하면
6. 과제 자신이 직접 만든 그림판으로 그림 그리기 참가자 게시판에
질문/후기 올리기