sg

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MouseButtonLeft  = willow.MouseButtonLeft
	MouseButtonRight = willow.MouseButtonRight
	ModShift         = willow.ModShift
	TextAlignLeft    = willow.TextAlignLeft
	TextAlignCenter  = willow.TextAlignCenter
	TextAlignRight   = willow.TextAlignRight
)

Variables

View Source
var (
	WhitePixel        = willow.WhitePixel
	DefaultFXAAConfig = willow.DefaultFXAAConfig
)

Functions

func Run

func Run(scene *Scene, config RunConfig) error

func SetPolygonPoints

func SetPolygonPoints(n *Node, pts []Vec2)

Types

type Atlas

type Atlas = willow.Atlas

func LoadAtlas

func LoadAtlas(jsonData []byte, pages []*ebiten.Image) (*Atlas, error)

func NewBatchAtlas

func NewBatchAtlas() *Atlas

type ClickContext

type ClickContext = willow.ClickContext

type Color

type Color = willow.Color

func ColorFromHSV

func ColorFromHSV(h, s, v float64) Color

func RGBA

func RGBA(r, g, b, a float64) Color

type DragContext

type DragContext = willow.DragContext

type EaseFunc

type EaseFunc = willow.EaseFunc

type FXAAConfig

type FXAAConfig = willow.FXAAConfig

type FontFamily

type FontFamily = willow.FontFamily

func NewFontFamilyFromFontBundle

func NewFontFamilyFromFontBundle(data []byte) (*FontFamily, error)

func NewFontFamilyFromTTF

func NewFontFamilyFromTTF(config FontFamilyConfig) (*FontFamily, error)

type FontFamilyConfig

type FontFamilyConfig = willow.FontFamilyConfig

type HitRect

type HitRect = willow.HitRect

type HitShape

type HitShape = willow.HitShape

type MouseButton

type MouseButton = willow.MouseButton

type Node

type Node = willow.Node

func NewContainer

func NewContainer(name string) *Node

func NewMesh

func NewMesh(name string, img *ebiten.Image, verts []Vertex, inds []uint16) *Node

func NewPolygon

func NewPolygon(name string, pts []Vec2) *Node

func NewSprite

func NewSprite(name string, region TextureRegion) *Node

func NewText

func NewText(name, content string, font *FontFamily) *Node

type PointerContext

type PointerContext = willow.PointerContext

type RunConfig

type RunConfig = willow.RunConfig

type Scene

type Scene = willow.Scene

func NewScene

func NewScene() *Scene

type TestRunner

type TestRunner = willow.TestRunner

func LoadTestScript

func LoadTestScript(data []byte) (*TestRunner, error)

type TextAlign

type TextAlign = willow.TextAlign

type TextBlock

type TextBlock = willow.TextBlock

type TextureRegion

type TextureRegion = willow.TextureRegion

type TweenConfig

type TweenConfig = willow.TweenConfig

type TweenGroup

type TweenGroup = willow.TweenGroup

func TweenAlpha

func TweenAlpha(n *Node, alpha float64, config TweenConfig) *TweenGroup

func TweenPosition

func TweenPosition(n *Node, toX, toY float64, config TweenConfig) *TweenGroup

type Vec2

type Vec2 = willow.Vec2

type Vertex

type Vertex = ebiten.Vertex

Jump to

Keyboard shortcuts

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