Method: Graphics::AbstractSimulation#ellipse
- Defined in:
- lib/graphics/simulation.rb
#ellipse(x, y, w, h, c, fill = false, aa = true) ⇒ Object
Draw a circle at x/y with radiuses w/h in color c.
564 565 566 567 |
# File 'lib/graphics/simulation.rb', line 564 def ellipse x, y, w, h, c, fill = false, aa = true y = self.h-y-1 renderer.draw_ellipse x, y, w, h, color[c], aa, fill end |