~/talk

Graphics and Simulations (and Games), Oh My!

Talkat RubyConf 2018 · 2018-11-28..11-30· [creative-coding]
slides:none on file

A new Ruby gem called graphics gem (beta, install with --pre) provides a single-gem framework for visualizations, simulations and simple games with a grade‑school math API, double‑buffered update/draw/present loop, and over 20 primitives. Examples include a 28-line bouncing‑balls simulation where COUNT=1 → 25 changes behavior; Langston’s ants, boids, fluids, and a tank game using sprites and collision maps. The C layer uses SDL2 backend boosts FPS from ~30 to ~200, and the API can save PNGs, render text, and run headless update loops.

AI-written summary · about

  1. 0:00Start
  2. 1:41What is Graphics?
  3. 1:56gem install graphics --pre
  4. 2:09Simple Framework
  5. 2:20Grade-School Maths
  6. 2:38New Tool in Your Toolbox
  7. 2:48WARNING
  8. 3:09scientist
  9. 3:21Damn Good Tool Dev
  10. 11:23Approachable
  11. 11:58Empowering
  12. 12:24Real Maths!
  13. 12:41Game Math Coordinates
  14. 13:1420+ Drawing Primitives
  15. 13:32Update & Draw Loop
  16. 15:04"Normal" Functionality
  17. 15:16Smooth Drawing
  18. 15:27Single Canvas
  19. 22:13Message Size / Time
  20. 23:15Excel?
  21. 25:10Experiment!
  22. 25:25Langston's Ants
  23. 30:18Sketch & Rules
  24. 30:29Build Up
~/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.