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
Coder Dojo London Fireworks
Search
Andy Kent
November 03, 2012
Education
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Coder Dojo London Fireworks
Andy Kent
November 03, 2012
Transcript
28 slides
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
More Decks by Andy Kent
See All by Andy Kent
Coder Dojo London MIDI
andykent
2
91
River JS
andykent
2
660
Creek
andykent
1
89
Scalling Node to 50 Million Requests
andykent
5
310
Other Decks in Education
See All in Education
Web 2.0 Patterns and Technologies - Lecture 8 - Web Technologies (1019888BNR)
signer
PRO
0
3.5k
AI活用の基礎体験ハンズオン(松尾研 AXエバンジェリスト講座)
minorun365
PRO
13
16k
[2026後期火5] 論理学(京都大学文学部 後期 第5回)「問題演習と ε-δ 論法」
yatabe
0
120
GOVERNOR ADDRESS 2 :延岡 研一 氏(国際ロータリー第2720地区:2026-2027年度 地区ガバナー・人吉ロータリークラブ ・人吉電気工事株式会社 会長)卓話 : 2026.10.26例会・卓話
2720japanoke
0
700
1002
cbtlibrary
0
560
EL GEOPARQUE MUNDIAL UNESCO VOLCANES DE CALATRAVA: DE LA INVESTIGACIÓN CIENTÍFICA A LA TRANSPOSICIÓN DIDÁCTICA EN EL AULA
juanmartin2026
0
58k
JOINTS
pawan_pharm
0
170
Session 1 & 2 - Mass Communication
adeputra13
0
750
[2026後期火5] 論理学(京都大学文学部 後期 第3回)「∀ の規則と固有変数条件」
yatabe
0
200
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 9
hiola
0
690
Digijulkaisut
matleenalaakso
1
10k
AIができることを人はなぜ学ぶのか ― 専門性を育て、AIと学び続ける大学へ
gmoriki
0
200
Featured
See All Featured
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
2
4k
The Pragmatic Product Professional
lauravandoore
37
7.5k
エンジニアに許された特別な時間の終わり
watany
109
250k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.2k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
How to build a perfect <img>
jonoalderson
1
6.3k
A better future with KSS
kneath
240
18k
Producing Creativity
orderedlist
PRO
348
41k
The Art of Programming - Codeland 2020
erikaheidi
57
15k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
990
Tell your own story through comics
letsgokoyo
1
1.1k