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
Coder Dojo London Fireworks
Search
Andy Kent
November 03, 2012
Education
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Coder Dojo London Fireworks
Andy Kent
November 03, 2012
More Decks by Andy Kent
See All by Andy Kent
Coder Dojo London MIDI
andykent
2
88
River JS
andykent
2
660
Creek
andykent
1
85
Scalling Node to 50 Million Requests
andykent
5
310
Other Decks in Education
See All in Education
Beyond the Prompt: Programming as a Pathway to Statistical Thinking
minecr
0
330
Center for Entrepreneurship Education | Science Tokyo (Institute of Science Tokyo)
sciencetokyo
PRO
0
280
【デザイナー就活講座】 デザイナー就活市場・企業探し・ポートフォリオのポイント
koheihasebe
0
480
[2026前期火5] 論理学(京都大学文学部 前期 第11回)「ハーモニー:三層モデルと保存拡大」
yatabe
0
260
[2026前期火5] 論理学(京都大学文学部 前期 第12回)「証明を走らせる:カリー・ハワード対応」
yatabe
0
290
[2026前期火5] 論理学(京都大学文学部 前期 第5回)「 ならばの問題演習・proof net・かつの規則」
yatabe
0
400
Modern Data Fetching Techniques in Angular
debug_mode
0
270
SFプロトタイピング体験(滝中学校)
yusk1450
PRO
0
120
解決策を教えても次期リーダーは育たない ─ 器の発達に伴走するために / Partnering with leaders in their vertical development
matsu0228
1
650
焦燥を平穏に変えるエンジニアのための哲学
ichimichi
7
6.7k
Course Review - Lecture 13 - Information Visualisation (4019538FNR)
signer
PRO
1
2.7k
新入社員を「あの子」と呼ばない運動 -PBL その前に- / Stop Calling New Hires "Kids"
aokiplayer
2
770
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
247
13k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Writing Fast Ruby
sferik
630
63k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
400
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
580
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
250
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
480
So, you think you're a good person
axbom
PRO
2
2.1k
Evolving SEO for Evolving Search Engines
ryanjones
0
260
Thoughts on Productivity
jonyablonski
76
5.3k
Transcript
Fireworks!
Who has seen Fireworks?
Today we are Making Fireworks!
fwdtek.com/fireworks
A simple Firework
fireworks.display(function() { fireworks.make().launch() })
Change the Colour
fireworks.display(function() { fireworks.make({ colour:‘red’ }).launch() })
Change the Position
fireworks.display(function() { fireworks.make({ x:100 }).launch() })
Setting The Height
fireworks.display(function() { fireworks.make({ x:100, height:400 }).launch() })
Tweaking The Direction
fireworks.display(function() { fireworks.make({ x:100, height:400, direction:5 }).launch() })
Two Fireworks?
fireworks.display(function() { fireworks.make({ colour:‘red’ }).launch() fireworks.make({ colour:‘blue’ }).launch() })
fireworks.display(function() { fireworks.make({ x: 300, height: 400, direction: 2 }).launch()
fireworks.make({ x: 300, height: 400, direction: -2 }).launch() })
Adding Timings
fireworks.display(function() { fireworks.make({ colour:‘red’ }).launch() fireworks.make({ colour:‘blue’ }).launch_in(3) })
Multiple Shots
fireworks.display(function() { fireworks.make({ repeat:5 }).launch() })
Waiting for Launch
fireworks.display(function() { fireworks.make({ repeat:5, wait:2 }).launch() })
Putting it all together...
fireworks.display(function() { fireworks.make({ colour:‘red’, x: 50, repeat: 5, wait: 4
}).launch() fireworks.make({ colour:‘green’, x: 250, repeat: 5, wait: 4 }).launch_in(2) })
Fire!!!
1Minute Long Display fireworks.make({OPTIONS}).launch() fireworks.make({OPTIONS}).launch_in(SECONDS) colour, x, height, direction, repeat,
wait fireworks.explode_at({ x:100, y:100 }) fireworks.on_click(function(x,y) { }) fireworks.on_move(function(x,y) { }) fireworks.after(SECONDS, function() { }) fireworks.every(SECONDS, function() { }) red, orange, yellow, green, cyan, blue, violet, magenta, pink
onMove & onClick