Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
610
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
100
Artist Talk at ITP
tchoi8
0
150
daum
tchoi8
0
730
workshop4
tchoi8
0
600
day3
tchoi8
0
330
Day2
tchoi8
0
540
Experimental pedagogy
tchoi8
0
280
Unlearning disability
tchoi8
0
2.7k
This talk is not about privilege but about access.
tchoi8
0
86
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
450
Bash Introduction
62gerente
615
220k
First, design no harm
axbom
PRO
2
1.3k
Facilitating Awesome Meetings
lara
57
7.1k
Thoughts on Productivity
jonyablonski
76
5.4k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
570
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
830
The Cost Of JavaScript in 2023
addyosmani
55
10k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
280
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
530
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. 과제 자신이 직접 만든 그림판으로 그림 그리기 참가자 게시판에
질문/후기 올리기