Ruby Sketch -
set title: "Interactive Sketch"
200.times do |i| x = rand(500) y = rand(500) r = rand(5..40) hue = (i * 3) % 360 svg.circle(cx: x, cy: y, r: r, fill: "hsl(#hue, 80%, 60%)", opacity: 0.7) end ruby sketch
: These are the flagship products of RubySketch. PlusSpec is a BIM tool for SketchUp that automates 3D modeling, quantity takeoff, and estimating. set title: "Interactive Sketch" 200
class Particle attr_accessor :x, :y def initialize(x, y) @x, @y = x, y end end and estimating. class Particle attr_accessor :x
class HelloWorld < RubySketch::Window def initialize super @label = RubySketch::Label.new(self, :text => 'Hello, World!') @label.center = true end end