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
NCC-JavaScript-Week#5
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Irene Chang
November 19, 2015
Education
69
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
NCC-JavaScript-Week#5
NTUST Coding Club JavaScript Course Week#5 (2015.11.20)
By Chiun Hau
For self-study only.
Irene Chang
November 19, 2015
More Decks by Irene Chang
See All by Irene Chang
前端初心者談,合作過程與學習經驗
irene84111
0
190
一手打造你的專屬網誌-Hexo 簡介及教學
irene84111
0
540
NCC-JavaScript-Week#7
irene84111
0
140
NCC-JavaScript-Week#6
irene84111
0
150
NCC-SublimeText-InstallationTutorial
irene84111
0
44
NCC-JavaScript-Week#4
irene84111
0
43
NCC-JavaScript-Week#3
irene84111
0
130
NCC-JavaScript-Week#2
irene84111
0
230
NCC-JavaScript-Week#1
irene84111
0
190
Other Decks in Education
See All in Education
Case Studies and Future Research - Lecture 12 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
180
Πλουτοκρατία: Η Τυραννία του Μαμμωνά και η Μεταανθρώπινη Δουλεία
amethyst1
0
260
Examen de Selectividad. Geografía junio 2026 (Convocatoria Ordinaria). UCLM
juanmartin2026
0
170
「機械学習と因果推論」入門 ③ 漸近効率な推定量と二重機械学習
masakat0
0
690
Interaction - Lecture 10 - Information Visualisation (4019538FNR)
signer
PRO
0
2.7k
Course Review - Lecture 13 - Information Visualisation (4019538FNR)
signer
PRO
1
2.6k
Gitがない時代 インターネットがない時代の 開発話
sapi_kawahara
0
280
✅ レポート採点基準 / How Your Reports Are Assessed
yasslab
PRO
0
370
!コスパよくインターンに受かる方法!
ruribou
1
270
2026年度春学期 統計学 第5回 分布をまとめるー記述統計量(平均・分散など) (2026. 5. 7)
akiraasano
PRO
0
140
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visualisation (4019538FNR)
signer
PRO
1
3.1k
Catecismo 26 #1 - Aula inaugural
cm_manaus
0
180
Featured
See All Featured
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
440
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
330
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
240
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
320
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
360
It's Worth the Effort
3n
188
29k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.1k
Writing Fast Ruby
sferik
630
63k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2k
Raft: Consensus for Rubyists
vanstee
141
7.5k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.5k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
200
Transcript
Build Cool Things with p5.js 康 㹦 ꔤ ⚺
⥜ ㉂ 噠 鏤 鎙 鰊 ⥜ 蒀 䕙 撑 僈 〵 猰 㣐 ✽ ⹛ 鏤 鎙 灇 瑖 爢 鴍 㣗
Why p5.js is COOL? 1 S P D F T
T J O H 涸 ㆹ 㷸 + B W B T D S J Q U 涸 㻜 ⡲ 㛇 劥 ♳ 㽠 僽 剤 鞮 㺢 ✽ ⹛ 䚍 涸 㼭 殥 㹻 罜 ⚂ 佅 䴂 % 粭 㕬 莅 ⹛ 殥
NYU ITP Q ⚺ 銴 歋 * 5 1
涸 㷸 欰 笞 隌 罜 ⚂ 䖎 㢵 僽 㥏 欰 * 5 1 㥶 ず . * 5 . F E J B - B C 僽 ✽ ⹛ 猰 䪮 谁 遯 涸 ⯓ 뀝
Example Code <3 劥 傈 䨾 剤 玑 䒭 焺
鿪 㖈 鸏 酆 I U U Q T H J U I V C D P N D I J V O I B V Q O D D
function setup() 〫 剚 㖈 玑 䒭 ⴲ 㨥 ⻋
㻜 㛂 遤 ♧ 妄 欽 倴 ♧ 妄 䚍 鏤 㹁
function draw() 剚 ♧ 湬 㛂 遤 湬 ⵌ ꡠ
ꟗ 笪 갤 欽 ⢵ 殥 㕬 㘗 騈 ⹛ 殥
function setup(){ createCanvas(500, 500); } function draw(){ ellipse(100, 100, 50,
50); } 殥 ♧ ⦐ ꬆ 姺 涸 㕩
ellipse(x, y, width, height) F M M J Q T
F
function setup(){ createCanvas(500, 500); } function draw(){ ellipse(100, 100, 50,
50); ellipse(200, 100, 70, 70); } 殥 Ⰽ ⦐ ꬆ 姺 涸 㕩
fill(color(100, 200, 100)); stroke(color(“red”)); // or no color noFill(); noStroke();
겝 蒀
var xPos = 0; function draw(){ ellipse(xPos, 100, 50, 50);
xPos ++; } 殥 ♧ ⦐ 剚 ⹛ 涸 㕩
function mouseClicked() 殹 徿 롗 럊 乹 ♧ ♴ ⛓
䖕 㽠 剚 㛂 遤
function mouseClicked(){ ellipse(mouseX, mouseY, 50, 50); } N P V
T F $ M J D L F E 徿 롗 ✲ ⟝
Cool? / P 0 C K F D U
T / P . F U I P E T 0 O M Z F B T Z U P V T F ' 6 / $ 5 * 0 / 4
rect() triangle() quad() bezier() vertex() ….
Advanced V T J O H G P S
J G B O E B S S B Z
Build a matrix 欽 G P S ⨞ ♧ ⦐
瀄 ꤏ
for(var i = 0; i < 9; i ++){ for(var
j = 0; j < 9; j ++) { ellipse(i*50 , j*50, 30, 30) } } 殥 ♧ ⦐ Y 涸 瀄 ꤏ
for(var i = 0; i < 10; i ++){ for(var
j = 0; j < 10; j ++) { if(i % 2 == 0) { fill(color(“blue”)); } else { fill(color(“red”)); } ellipse(i*50 ,j*50, 30, 30); } } 殥 ♧ ⦐ Y 涸 瀄 ꤏ ⸈ Ⰵ ⴼ 倬 齅 鱀
#PrayForParis ⨞ ♧ ⦐ Y 涸 㕩 䕎
岁 㕜 㕜 偫 瀄 ꤏ 鍑 瘸 捀 Q S B Z ' P S 1 B S J T K T ⴕ ꗻ 箻 绢
Using sin() 殹 ⦐ 侸 㷸 㹻 ゅ
T J O 宕 黇 〫 㔐 ⫄
荛 涸 侸 㶶 ⵄ 欽 Ⱖ 暶 婌 涸 岚 䕎 醢 鸤 礶 䕙 涸 ⹛ 殥 佪 卓
frameCount 剚 㔐 ⫄ ♧ ⦐ 侮 侸 ➿
邍 植 㖈 殥 鹎 遤 ⵌ 痧 䎙 䌴 ✫ 䨾 ⟃ ➮ Ⱖ 㻜 剚 ♧ 湬 ⸈ ♧ ⸈ ♧ ♴
function draw(){ ellipse(400, 400, sin(frameCount), sin(frameCount)); } G S B
N F $ P V O U 莅 T J O 涸 刈 僳 禾 袇
function draw(){ var sinSeed = sin(frameCount * 0.01); ellipse(400, 400,
sinSeed * 100, sinSeed * 100); } G S B N F $ P V O U 莅 T J O 涸 刈 僳 禾 袇 葻 㥪 晝 劥
sin() = Magic 箻 绢 ⡲ ⦐ ♳ ♴ ⨞
矦 镜 麌 ⹛ 涸 椕 椕 ゅ 鍑 瘸 捀 T J O # B M M K T
Final Project 雊 1 S B Z ' P
S 1 B S J T 涸 敚 岙 䙐 㣐 䙐 㼭 ゅ 䧮 涸 晝 劥 㖈 鸏 酭 I U U Q H P P H M Y - [ P 5 玑 䒭 焺 僽 Q S B Z ' P S 1 B S J T K T
Terima Kasih! 䧮 僽 㹦 ꔤ 㹦 ꔤ 僽
䧮