Ruby Sketch !full! May 2026
on :key_down do |event| clear if event.key == 'c' end
draw_circle(400, 300, 250, 1) show require 'ruby2d' require 'ruby_noise' # gem install ruby_noise set width: 800, height: 600, fps_cap: 30 ruby sketch
class Particle attr_accessor :x, :y def initialize(x, y) @x, @y = x, y end end on :key_down do |event| clear if event
show require 'ruby2d' set width: 800, height: 600 fps_cap: 30 class Particle attr_accessor :x
show require 'ruby2d' set width: 500, height: 500