Class: MG::Draw
Instance Attribute Summary
Attributes inherited from Node
#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #z_index
Draw Operations collapse
-
#clear ⇒ self
Clears drew shapes.
-
#dot(pos, radius, color) ⇒ self
Draws a filled circle at the given position with the given radius and color.
-
#line(origin, destination, thickness, color) ⇒ self
Draws a line at the given position with the given color.
-
#rect(origin, destination, color, fill = false) ⇒ self
Draws a rectangle at the given position with the given color.
-
#triangle(position1, position2, position3, color) ⇒ self
Draws a triangle at the given positions with the given color.
Methods inherited from Node
#add, #children, #delete, #delete_from_parent, #intersects?, #number_of_running_actions, #parent, #run_action, #schedule, #schedule_once, #stop_action, #stop_all_actions, #unschedule, #visible=, #visible?
Instance Method Details
#clear ⇒ self
Clears drew shapes.
848 |
# File 'doc/API_reference.rb', line 848 def clear; end |
#dot(pos, radius, color) ⇒ self
Draws a filled circle at the given position with the given radius and color.
855 |
# File 'doc/API_reference.rb', line 855 def dot(pos, radius, color); end |
#line(origin, destination, thickness, color) ⇒ self
Draws a line at the given position with the given color.
871 |
# File 'doc/API_reference.rb', line 871 def line(origin, destination, thickness, color); end |
#rect(origin, destination, color, fill = false) ⇒ self
Draws a rectangle at the given position with the given color.
863 |
# File 'doc/API_reference.rb', line 863 def rect(origin, destination, color, fill=false); end |
#triangle(position1, position2, position3, color) ⇒ self
Draws a triangle at the given positions with the given color.
879 |
# File 'doc/API_reference.rb', line 879 def triangle(position1, position2, position3, color); end |