Class: Sangaku::Grid

Inherits:
Object
  • Object
show all
Defined in:
lib/sangaku-eyeball/drawable.rb

Instance Method Summary collapse

Instance Method Details

#draw(window, color = 0x55aaaaFF) ⇒ Object



42
43
44
45
46
47
48
49
# File 'lib/sangaku-eyeball/drawable.rb', line 42

def draw(window, color = 0x55aaaaFF)
  @xs.each do |x|
    window.draw_line(x, 0, color, x, window.height, color)
  end
  @ys.each do |y|
    window.draw_line(0, y, color, window.width, y, color)
  end
end