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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Taeyoon Choi
August 17, 2016
600
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Day 1
Taeyoon Choi
August 17, 2016
More Decks by Taeyoon Choi
See All by Taeyoon Choi
Prosthetics — Adaptation
tchoi8
0
97
Artist Talk at ITP
tchoi8
0
140
daum
tchoi8
0
730
workshop4
tchoi8
0
600
day3
tchoi8
0
320
Day2
tchoi8
0
520
Experimental pedagogy
tchoi8
0
280
Unlearning disability
tchoi8
0
2.7k
This talk is not about privilege but about access.
tchoi8
0
84
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
490
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The Language of Interfaces
destraynor
162
27k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
260
Tell your own story through comics
letsgokoyo
1
950
So, you think you're a good person
axbom
PRO
2
2.1k
The agentic SEO stack - context over prompts
schlessera
0
820
Rails Girls Zürich Keynote
gr2m
96
14k
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. 과제 자신이 직접 만든 그림판으로 그림 그리기 참가자 게시판에
질문/후기 올리기