Skip to main content

Ruby Sketch ((hot)) -

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

on :key_down do |event| clear if event.key == 'c' end ruby sketch

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

show

Run: ruby sketch.rb Draw. Experiment. Break things. Repeat. show require 'ruby2d' set width: 500