ebitencp

package
v0.0.0-...-1449d46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DrawPointLineScale = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Drawer

type Drawer struct {
	Screen *ebiten.Image

	ScreenWidth  int
	ScreenHeight int
	AntiAlias    bool
	// contains filtered or unexported fields
}

func NewDrawer

func NewDrawer(screenWidth, screenHeight int) *Drawer

func (*Drawer) CollisionPointColor

func (d *Drawer) CollisionPointColor() cp.FColor

func (*Drawer) ConstraintColor

func (d *Drawer) ConstraintColor() cp.FColor

func (*Drawer) Data

func (d *Drawer) Data() interface{}

func (*Drawer) DrawCircle

func (d *Drawer) DrawCircle(pos cp.Vector, angle, radius float64, outline, fill cp.FColor, data interface{})

func (*Drawer) DrawDot

func (d *Drawer) DrawDot(size float64, pos cp.Vector, fill cp.FColor, data interface{})

func (*Drawer) DrawFatSegment

func (d *Drawer) DrawFatSegment(a, b cp.Vector, radius float64, outline, fill cp.FColor, data interface{})

func (*Drawer) DrawPolygon

func (d *Drawer) DrawPolygon(count int, verts []cp.Vector, radius float64, outline, fill cp.FColor, data interface{})

func (*Drawer) DrawSegment

func (d *Drawer) DrawSegment(a, b cp.Vector, fill cp.FColor, data interface{})

func (*Drawer) Flags

func (d *Drawer) Flags() uint

func (*Drawer) OutlineColor

func (d *Drawer) OutlineColor() cp.FColor

func (*Drawer) ShapeColor

func (d *Drawer) ShapeColor(shape *cp.Shape, data interface{}) cp.FColor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL