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)
-
- (Draw) dot(pos, radius, color)
Draws a filled circle at the given position with the given radius and color.
-
- (Draw) rect(origin, destination, color, fill = false)
Draws a rectangle at the given position with the given color.
Methods inherited from Node
#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #parent
Instance Method Details
- (Draw) dot(pos, radius, color)
Draws a filled circle at the given position with the given radius and color.
371 |
# File 'motion-game', line 371 def dot(pos, radius, color); end |
- (Draw) rect(origin, destination, color, fill = false)
Draws a rectangle at the given position with the given color.
379 |
# File 'motion-game', line 379 def rect(origin, destination, color, fill=false); end |