Ruby: Sketch

Run: ruby sketch.rb Draw. Experiment. Break things. Repeat.

class Particle attr_accessor :x, :y def initialize(x, y) @x, @y = x, y end end ruby sketch

gem install ruby2d svg chunky_png Check: Run: ruby sketch

show a) Recursive circles (Apollonian-like) require 'ruby2d' set width: 800, height: 600, background: 'black' :y def initialize(x