# test.rb require 'ruby2d' set title: "Ruby Sketch Test" Square.new show

show

show require 'ruby2d' set width: 500, height: 500

on :mouse_down do |event| Circle.new(x: event.x, y: event.y, radius: 10, color: 'fuchsia') @points << [event.x, event.y] end

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