2026/11
asobi
Object to Art. Art to Object. — a creative coding gem for Ruby

Overview
asobi is a zero-dependency creative coding gem for Ruby. With to_art, numbers, strings, arrays — and your own classes — become pictures, and every picture is an immutable Ruby object you can arrange, layer, and animate.
After gem install asobi, type asobi in a terminal: a sketch opens in your browser and updates every time you save. The playground on the website runs on ruby.wasm, so you can try it without installing anything.
What I was thinking
Instead of porting p5.js to Ruby, I started from the idea that Ruby objects themselves become pictures. Rather than executing drawing commands in order, pictures are values you can hold and compose.
Reception
- Featured in Ruby Weekly #827 (2026/11/19)