Ruby Sketch Guide
# test.rb require 'ruby2d' set title: "Ruby Sketch Test" Square.new show
show
show require 'ruby2d' set width: 500, height: 500 ruby sketch
on :mouse_down do |event| Circle.new(x: event.x, y: event.y, radius: 10, color: 'fuchsia') @points << [event.x, event.y] end # test
Run: ruby sketch.rb Draw. Experiment. Break things. Repeat. color: 'fuchsia') @points <