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








