Week3

Similar documents
PRO1_09E [읽기 전용]

슬라이드 1

슬라이드 1

Lab10

Orcad Capture 9.x

PRO1_02E [읽기 전용]

The_IDA_Pro_Book

강의10

01-OOPConcepts(2).PDF

<30342DBCF6C3B3B8AEBDC3BCB33228C3D6C1BE292E687770>

chapter4

5장.key

MAX+plus II Getting Started - 무작정따라하기

<28C3D6C1BE29312DC0CCBDC2BEC62E687770>

b74...*

DE1-SoC Board

CAD 화면상에 동그란 원형 도형이 생성되었습니다. 화면상에 나타난 원형은 반지름 500인 도형입니다. 하지만 반지름이 500이라는 것은 작도자만 알고 있는 사실입니다. 반지름이 500이라는 것을 클라이언트와 작업자들에게 알려주기 위 해서는 반드시 치수가 필요하겠죠?

DocsPin_Korean.pages

untitled

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

,,,,,, (41) ( e f f e c t ), ( c u r r e n t ) ( p o t e n t i a l difference),, ( r e s i s t a n c e ) 2,,,,,,,, (41), (42) (42) ( 41) (Ohm s law),

Jwplayer 요즘 웹에서 동영상 재생을 목적으로 많이 쓰이는 jwplayer의 설치와 사용하기 입니다. jwplayer홈페이지 : 위의 홈페이지에 가시면 JWplayer를 다운 받으실 수 있습니다. 현재 5.1버전

1

Smart Power Scope Release Informations.pages

untitled

Mentor_PCB설계입문

초보자를 위한 C++

Microsoft PowerPoint - 기계공학실험1-1MATLAB_개요2D.pptx

Microsoft PowerPoint - a10.ppt [호환 모드]

PowerSHAPE 따라하기 Calculate 버튼을 클릭한다. Close 버튼을 눌러 미러 릴리프 페이지를 닫는다. D 화면을 보기 위하여 F 키를 누른다. - 모델이 다음과 같이 보이게 될 것이다. 열매 만들기 Shape Editor를 이용하여 열매를 만들어 보도록

CAM350 Family (I) CAM350 Family CAM CAD (Gerber, HPGL, DXF),,. CAM350 Family ACCESS Code GerberView-II, PCGerber-II, ECAM-II, CAM350,. Gerber Data Pho

LCD Display

TRIBON 실무 DRAFT 편 조선전용 CAD에 대한 기초적인 사용 방법 기술 기술지원팀


Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

쉽게 풀어쓴 C 프로그래밍

자바 프로그래밍

Modern Javascript

2005CG01.PDF

DioPen 6.0 사용 설명서


Absolute Blue 태양의 위세 앞에서도 당당한 여자의 자존 심을 닮은 컬러. 바람을 닮아 유연한, 물을 닮아 자유롭게, 거칠 것 없이 여름의 클라 이맥스에 올라서서 세상을 물들이는 소리 없는 지배자, 블루

Dialog Box 실행파일을 Web에 포함시키는 방법

PowerPoint 프레젠테이션

Week5

자바GUI실전프로그래밍2_장대원.PDF

제목을 입력하세요.

<32B1B3BDC32E687770>

Solaris Express Developer Edition

VOL /2 Technical SmartPlant Materials - Document Management SmartPlant Materials에서 기본적인 Document를 관리하고자 할 때 필요한 세팅, 파일 업로드 방법 그리고 Path Type인 Ph

MCM, PCB (mentor) : da& librarian jakup & package jakup & layout jakup & fablink jakup & Summary 2 / 66

DCR-HC15

TViX_Kor.doc

4 CD Construct Special Model VI 2 nd Order Model VI 2 Note: Hands-on 1, 2 RC 1 RLC mass-spring-damper 2 2 ζ ω n (rad/sec) 2 ( ζ < 1), 1 (ζ = 1), ( ) 1

untitled

<35312DBCB1C8A3B5B52E687770>

Color Space 1 아련한 첫사랑의 추억, 영화 <건축학개론> 학교의 색다른 변신 제주 표선초등학교 우와~ 우리 학교 맞아? 정말 예쁘다~. 9월 1일 개학 날 등교하는 아이들의 눈이 휘둥그레졌다. 여름방학 사이에 밋밋했던 제주 표선초등학교의 외관이 색색의 팬톤페

Interstage5 SOAP서비스 설정 가이드

매력적인 맥/iOS 개발 환경 그림 A-1 변경 사항 확인창 Validate Setting... 항목을 고르면 된다. 프로젝트 편집기를 선택했을 때 화면 아 래쪽에 있는 동일한 Validate Settings... 버튼을 클릭해도 된다. 이슈 내비게이터 목록에서 변경할

CD-RW_Advanced.PDF

PowerPoint 프레젠테이션

04_오픈지엘API.key

untitled

목차 제 1 장 inexio Touch Driver소개 소개 및 주요 기능 제품사양... 4 제 2 장 설치 및 실행 설치 시 주의사항 설치 권고 사양 프로그램 설치 하드웨

...? 2 Carryover Data. 2 GB / $35 Safety Mode Safety Mode,. 3 4 GB / $50 : $20/ 4 : $10/ : $5/ : 8 GB / $70 16 GB / $ ; 6 XL,, Verizon X

1. 2., $20/ 1 $10/ $5/ GB Verizon Cloud 4? ; 2 1 GB $15 ( GB ). 1 $ Wi-Fi (, ) 4, GB verizonwireless.com/korean 1

0.1-6

Structure and Interpretation of Computer Programs: Assignment 3 Seung-Hoon Na October 4, George (아래 3개의 문제에 대한 구현이 모두 포함된 george.rkt파일을 제출하시오.

00.1

UNIST_교원 홈페이지 관리자_Manual_V1.0

K7VT2_QIG_v3

untitled

PowerPoint 프레젠테이션

제 출 문 환경부장관 귀하 본 보고서를 습마트기기 활용 환경지킴이 및 교육 통합 서비스 개 발 과제의 최종보고서로 제출합니다. 주관연구기관 : 주관연구기관장 : 2015년 10월 주식회사 덕키즈 김 형 준 (주관)연구책임자 : 문종욱 (주관)참여연구원 : 김형준, 문병

2

hlogin7

歯기구학

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for

쉽게 풀어쓴 C 프로그래밍

untitled

2월 종합

(Asynchronous Mode) ( 1, 5~8, 1~2) & (Parity) 1 ; * S erial Port (BIOS INT 14H) - 1 -

13주-14주proc.PDF

생명의 신비를 푸는 화학

Microsoft PowerPoint - PL_03-04.pptx

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D D382E687770>

Application TI-89 / Voyage TM 200 PLT application. application, application. APPLICATIONS :, N. 1. O application. 2. application : D C application,. a

해양모델링 2장5~ :26 AM 페이지6 6 오픈소스 소프트웨어를 이용한 해양 모델링 물리적 해석 식 (2.1)의 좌변은 어떤 물질의 단위 시간당 변화율을 나타내며, 우변은 그 양을 나타낸 다. k 5 0이면 C는 처음 값 그대로 농

09-interface.key

SRC PLUS 제어기 MANUAL

Microsoft Word - Installation and User Manual_CMD V2.2_.doc

2011년 10월 초판 c 2011 Sony Corporation. All rights reserved. 서면 허가 없이 전체 또는 일부를 복제하는 것을 금합니다. 기능 및 규격은 통보 없이 변경될 수 있습니다. Sony와 Sony 로고는 Sony의 상표입니다. G L

인켈(국문)pdf.pdf

Network Security - Wired Sniffing 실습 ICNS Lab. Kyung Hee University

歯9장.PDF

Transcription:

2015 Week 03 / _

Assignment 1 Flow

Assignment 1

Hello Processing 1. Hello,,,, 2. Shape rect() ellipse() 3. Color stroke() fill() color selector background() 4

Hello Processing 4. Interaction setup() draw() loop void size() : mousex, mousey backgroud() 5. Questions if, mousepressed 5

Socrative Socrative (https://b.socrative.com/login/student/) (ios / Android) : ITCT 6

(processing)? MIT Ben Fry Casey Reas -,, / / 8

.. ( ) 9

Java Processing 10

(https://processing.org/exhibition/) (http://forum.processing.org/two/) OpenProcessing(http://www.openprocessing.org) (http://makeprocessing.com/ processing_basic) 12

tutorials https://processing.org/tutorials/ examples https://processing.org/examples/ File > Examples reference https://processing.org/reference/ Find in Reference... 13

(name) (examples) (description) (syntax) (parameters) (returns) void 14

sketch:.pde sketch. export File > Export Application Android( ), JavaSrcipt( ) (Tools > Add Tool > Mode) 15

sketchbook: sketch File > Sketchbook. PC: C:\My Documents\Processing Mac: /Users/< >/Documents/Processing Preference 3.0 2.x ( ) 16

menu sketch tabs toolbar text editor Menu File: New, Open, Examples, Quit,.. Edit: Undo, Copy, Paste, Auto format, Sketch: Run, Present, Tweak, Stop, Debugger: Continue, Step, Tools: Create Format, Color chooser, Archive sketch, Help: Search, Reference 17

menu sketch tabs toolbar text editor Toolbar Run (cmd+r / ctrl+r) Stop (esc) Debug Mode 18

Lab 1: My First Program sketch. // My first program Print("Hello, Processing!"); rect(10, 10, 50, 50); (run) 19

Lab 1: My First Program?? 20

(Comment) ( )... Comment : // : /* */ /** */ cmd+/ ctrl+/ 21

. (function). Print function print. Print print. Console Hello Processing!, rect.. (Print vs. print) (elipse vs. ellipse) quotation mark ( vs. " ) semicolon(;) 22

(pixels)

(coordinate system) Point A x 1, y 0 Point B x 4, y 5,. Point A (1, 0), Point B (4, 5) 24

(coordinate system) ( ) 0,0 X Y ( ) pixel 25

(shapes)? Point: x and y Line: two end points? Rectangle: two corners? Or??? Ellipse:???? 26

(Point) (4, 5) point point(x, y); point x y (parameters, ) (;) 27

(Line) Line :! line line(x1, y1, x2, y2); line 4 parameter ( x, y, x, y) (;) 28

(Rectangle) Rectangle? rectangle rect(x, y, width, height); rect 4 parameter ( x, y,, ) (;) (default mode: CORNER) 29

(Rectangle) Rectangle? rectangle rectmode(center); rectangle CENTER rectmode(center); rect(x, y, width, height); rectmode(corners); 30

(Rectangle) Rectangle? rectangle rectmode(corners); rectangle CORNERS (CORNER x) rectmode(corners); rect(x1, y1, x2, y2); rectmode(corner); 31

(Ellipse) Ellipse? ellipse rectangle (rectangle) ellipse ellipse(x, y, width, height); : ellipsemode(center) ellipsemode(center) width == height circle ellipse(x1, y1, x2, y2); ellipsemode(corners); ellipse(x1, y1, x2, y2); 32

triangle() - arc() - quad() - curve() - reference 33

(canvas) size(width, height) / fullscreen( ) 100x100 size(width, height) : size(200, 200); fullscreen() 34

Lab 2: Drawing a Zoog line(), rect(), ellipse(). ( ) 200 x 200. : Zoog 35

(Color)

Zoog Zoog... background(255); // Sets background to white stroke(0); // Sets outline to black fill(150); // Sets interior of a shape to grey 255, 0, 150 (parameter)? RGB value 37

Color System: Grayscale : bit (0 or 1) : 1, 0 2 8. 2x2x2x2x2x2x2x2 = 2 8 = 256 0 = black ( ) 255 = white ( ) 38

Color System: Grayscale Example stroke(), fill(). nofill(), nostroke() / default 39

Lab 3: Grayscale. ( 200 x 200) 40

Color System: RGB Color 3 Red + Green = Yellow Red + Blue = Purple Green + Blue = Cyan (blue-green) Red + Green + Blue = White no colors = Black RGB Values (R,G,B) grayscale 0-255 256. 0 : (black) 255 : (?) 41

Color System: RGB Color Example fill(),background(), stroke() parameter. fill(red, green, blue);. background(255); nostroke(); fill(255,0,0); // Bright red ellipse(20,20,16,16); fill(127,0,0); // Dark red ellipse(40,20,16,16); fill(255,200,200); // Pink (pale red) ellipse(60,20,16,16); 42

Color Tool Color Selector 43

Lab 4: Color. background( ); fill(,, ); ellipse(20,40,16,16); fill(,, ); ellipse(40,40,16,16); fill(,, ); ellipse(60,40,16,16); // bright green // dark purple // yellow 44

Transparency parameter fill(r, g, b, alpha) alpha r, g, b. 0 : 255 : parameter 255, 100% 45

Lab 5: Transparency transparency. size(200,200); background(0); nostroke(); fill(0,0,255); rect(0,0,100,200); fill(255,0,0,255); //100% opacity rect(0,0,200,40); fill(255,0,0,191); //75% opacity rect(0,50,200,40); fill(255,0,0,127); //50% opacity rect(0,100,200,40); fill(255,0,0,63); //25% opacity rect(0,150,200,40); 46

Lab 6: Colored Zoog. 47

Flow

Program Flow 49

Task Flow Step1:. Step2:.. Step3: (100m ) ( ) ( ) 50

Program Flow : (Processing) Step1:. Step2:. 51

Block of Code. Java, C, C++, PHP curly brace : {... } sub-step. 1 2 1a 1b indent Auto Format ( cmd+t or ctrl+t) 52

static: active: active mode setup() draw() 53

setup() draw() setup() draw() 54

setup() draw(), setup(), draw() Program Starts Call setup() Call draw() No Done yet? Yes Program Ends 55

Lab 7 : active mode void setup() { // Set the size of the window size(200,200); } void draw() { // Draw a white background background(255); setup() runs first one time. size() should always be first line of setup() since Processing w i l l n o t b e a b l e to do anything before the window size if specified. draw() loops continuously until you close the sketch window. // Set CENTER mode ellipsemode(center); rectmode(center); // Draw Zoog's body stroke(0); fill(150); rect(100,100,20,100); // Draw Zoog's head stroke(0); fill(255); ellipse(100,70,60,60); fig. 3.3 } // Draw Zoog's eyes fill(0); ellipse(81,70,16,32); ellipse(119,70,16,32); // Draw Zoog's legs stroke(0); line(90,150,80,160); line(110,150,120,160); 56

Tweak Run > Tweak 3.0 tweak active mode 57

Quiz 1 & Assignment 2

Quiz 1 2015-10-05 3:00pm ( ) Week1-2 Socrative 59

Assignment 2: : 2015-10-04 10:00pm Archive Sketch.zip : 2014-31378.zip 60

Archive Sketch 61

Archive Sketch

Archive Sketch

Archive Sketch

Archive Sketch 65

Archive Sketch 66

Questions?