Ruby - Sketch
show require 'ruby2d' set width: 500, height: 500
show a) Recursive circles (Apollonian-like) require 'ruby2d' set width: 800, height: 600, background: 'black' ruby sketch
class Particle attr_accessor :x, :y def initialize(x, y) @x, @y = x, y end end show require 'ruby2d' set width: 500, height: 500
show require 'svg' svg = SVG.new(width: 500, height: 500) show require 'ruby2d' set width: 500
Run: ruby sketch.rb Draw. Experiment. Break things. Repeat.