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