Documentation ¶
Index ¶
- Constants
- func ColorForShape(shape *cp.Shape, data interface{}) cp.FColor
- type DrawOption
- type Drawer
- func (d *Drawer) CollisionPointColor() cp.FColor
- func (d *Drawer) ConstraintColor() cp.FColor
- func (d *Drawer) Data() interface{}
- func (d *Drawer) DrawCircle(pos cp.Vector, angle float64, radius float64, outline cp.FColor, ...)
- func (d *Drawer) DrawDot(size float64, pos cp.Vector, fill cp.FColor, data interface{})
- func (d *Drawer) DrawFatSegment(a cp.Vector, b cp.Vector, radius float64, outline cp.FColor, fill cp.FColor, ...)
- func (d *Drawer) DrawPolygon(count int, verts []cp.Vector, radius float64, outline cp.FColor, ...)
- func (d *Drawer) DrawSegment(a cp.Vector, b cp.Vector, fill cp.FColor, data interface{})
- func (d *Drawer) Flags() uint
- func (d *Drawer) Image() image.Image
- func (d *Drawer) NewFrame()
- func (d *Drawer) OutlineColor() cp.FColor
- func (d *Drawer) ShapeColor(shape *cp.Shape, data interface{}) cp.FColor
Constants ¶
View Source
const (
LineWidth = 2
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DrawOption ¶
type Drawer ¶
type Drawer struct {
// contains filtered or unexported fields
}
func NewDrawer ¶
func NewDrawer(opt DrawOption) *Drawer
func (*Drawer) CollisionPointColor ¶
func (*Drawer) ConstraintColor ¶
func (*Drawer) DrawCircle ¶
func (*Drawer) DrawFatSegment ¶
func (*Drawer) DrawPolygon ¶
func (*Drawer) DrawSegment ¶
func (*Drawer) OutlineColor ¶
Click to show internal directories.
Click to hide internal directories.