~/talk

Joyful Particles in Elm

Talkat Oslo Elm Day 2019 · on Saturday, 2019-02-16· [creative-coding, web-animation]
links:none on file
slides:none on file

Library elm-particle for Elm generates SVG particle effects integrated with The Elm Architecture, demonstrated by building fireworks and confetti. Code creates bursts of ~100 sparks with random speeds (clamped 0–300 px/s), gravity ≈98 px/s², drag via a coefficient/density/area model, and lifetimes clustered around 1.5–2.0s using a normal distribution instead of uniform randomness. Views render rotating stretched ellipses, opacity fading linearly from white to color via HSLA fade, and single-color bursts by generating one hue per explosion. The result looks like real fireworks and performs in-browser.

AI-written summary · about

  1. 0:00Introduction to particles
  2. 1:04Particle library basics
  3. 3:10Building the fireworks demo
  4. 5:37Adding gravity and drag
  5. 7:21Refining particle lifetimes
  6. 9:30Creating spherical fireworks
  7. 11:15Simulating streaking effects
  8. 13:25Color and fade-out animation
  9. 15:32Uniform color fireworks
  10. 16:57Randomizing explosion positions
  11. 18:02Final notes and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.