Documentation ¶
Index ¶
- type Rectangle
- func (r *Rectangle) Bottom(val ...int) int
- func (r *Rectangle) BottomLeft(val ...int) (int, int)
- func (r *Rectangle) BottomRight(val ...int) (int, int)
- func (r *Rectangle) Center(val ...int) (int, int)
- func (r *Rectangle) CenterX(val ...int) int
- func (r *Rectangle) CenterY(val ...int) int
- func (r *Rectangle) CollidesWith(s *Rectangle) bool
- func (r *Rectangle) Draw(screen *ebiten.Image)
- func (r *Rectangle) DrawCircle(screen *ebiten.Image)
- func (r *Rectangle) Empty() bool
- func (r *Rectangle) Left(val ...int) int
- func (r *Rectangle) MidBottom(val ...int) (int, int)
- func (r *Rectangle) MidLeft(val ...int) (int, int)
- func (r *Rectangle) MidRight(val ...int) (int, int)
- func (r *Rectangle) MidTop(val ...int) (int, int)
- func (r *Rectangle) Right(val ...int) int
- func (r *Rectangle) Size(val ...int) (int, int)
- func (r *Rectangle) Top(val ...int) int
- func (r *Rectangle) TopLeft(val ...int) (int, int)
- func (r *Rectangle) TopRight(val ...int) (int, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rectangle ¶
func (*Rectangle) CollidesWith ¶
CollidesWith checks if two rectangles overlap
func (*Rectangle) Draw ¶
func (r *Rectangle) Draw(screen *ebiten.Image)
Draw a rectangle on the screen using the ebiten vector package with white default color
func (*Rectangle) DrawCircle ¶
func (r *Rectangle) DrawCircle(screen *ebiten.Image)
DrawCircle draws an ellipse on the screen using the ebiten vector package with white default color this is a rectangle, but for some reason we want to draw circle
Click to show internal directories.
Click to hide internal directories.