Method: Graphics::Drawing#initialize
- Defined in:
- lib/graphics/simulation.rb
#initialize(*a) ⇒ Drawing
:nodoc:
734 735 736 737 738 739 740 741 742 743 |
# File 'lib/graphics/simulation.rb', line 734 def initialize(*a) # :nodoc: super self.texture = renderer.new_texture draw_on texture do clear yield if block_given? end end |