CP::Space::DebugDraw
Constants
COLLISION_POINT_COLOR = Color.new(1.0, 0.0, 0.0)
Color passed to drawing functions for collision points.
CONSTRAINT_COLOR = Color.new(0.0, 0.75, 0.0)
Color passed to drawing functions for constraints.
SHAPE_OUTLINE_COLOR = Color.new(*{200, 210, 230}.map(&./(255.0)))
Outline color passed to the drawing function.
Constructors
Class methods
Instance methods
color_for_shape(shape : Shape) : Color
Returns a color for a given shape.
This gives you an opportunity to color shapes based on how they are used in your engine.
draw_circle(pos : Vect, angle : Float64, radius : Float64, outline_color : Color, fill_color : Color)
Draw a filled, stroked circle.
Draw a thick line segment.
Draw a convex polygon.
flags
Source