pencil

package
v0.0.0-...-22306b7 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlignStart Alignment
	AlignEnd
	AlignCenter

	AlignLeft   = AlignStart
	AlignRight  = AlignEnd
	AlignTop    = AlignStart
	AlignBottom = AlignEnd
)

Variables

This section is empty.

Functions

func FillRect

func FillRect(dst *ebiten.Image, x, y, width, height float64, clr color.Color)

func FillRectV

func FillRectV(dst *ebiten.Image, pos space.Vec2F, size space.Vec2F, clr color.Color)

func Line

func Line(dst *ebiten.Image, x1, y1, x2, y2, thickness float64, clr color.Color)

func StrokeCircle

func StrokeCircle(dst *ebiten.Image, cx, cy, r, thickness float64, clr color.Color)

func StrokeRect

func StrokeRect(dst *ebiten.Image, x, y, width, height, thickness float64, clr color.Color)

func StrokeRectR

func StrokeRectR(dst *ebiten.Image, rect space.RectF, thickness float64, clr color.Color)

func StrokeRectV

func StrokeRectV(dst *ebiten.Image, pos space.Vec2F, size space.Vec2F, thickness float64, clr color.Color)

func TextAligned

func TextAligned(
	dst *ebiten.Image, fontFace font.Face, s string, vertical, horizontal Alignment, x, y float64, clr color.Color,
)

func TextBottomCenter

func TextBottomCenter(dst *ebiten.Image, fontFace font.Face, s string, x, y float64, clr color.Color)

func TextBottomLeft

func TextBottomLeft(dst *ebiten.Image, fontFace font.Face, s string, x, y float64, clr color.Color)

func TextBottomRight

func TextBottomRight(dst *ebiten.Image, fontFace font.Face, s string, x, y float64, clr color.Color)

func TextCentered

func TextCentered(dst *ebiten.Image, fontFace font.Face, s string, x, y float64, clr color.Color)

func TextTopLeft

func TextTopLeft(dst *ebiten.Image, fontFace font.Face, s string, x, y float64, clr color.Color)

func TextTopRight

func TextTopRight(dst *ebiten.Image, fontFace font.Face, s string, x, y float64, clr color.Color)

Types

type Alignment

type Alignment uint

Jump to

Keyboard shortcuts

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