Sha256: e3ccf5987170459c5fcd3e048f263a7313c98ce68b8cdb51a4bbaae3772762c5
Contents?: true
Size: 641 Bytes
Versions: 3
Compression:
Stored size: 641 Bytes
Contents
require "rhythmmml/z_order" module Rhythmmml module Figure module Base def initialize(window, options={}) @window = window @color = options[:color] || Gosu::Color::WHITE @z_order = options[:z_order] || ZOrder::FIGURE end end class Bar include Base def initialize(window, x1, y1, x2, y2, options={}) super(window, options) @x1 = x1 @y1 = y1 @x2 = x2 @y2 = y2 end def draw @window.draw_line(@x1, @y1, @color, @x2, @y2, @color, @z_order) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rhythmmml-0.0.3 | lib/rhythmmml/figure.rb |
rhythmmml-0.0.2 | lib/rhythmmml/figure.rb |
rhythmmml-0.0.1 | lib/rhythmmml/figure.rb |