Versions in this module Expand all Collapse all v0 v0.2.0 Apr 11, 2026 Changes in this version + func BilinearColor(g *GradientColors, u, v float64) sg.Color + func LayoutNineSlice(nodes *NineSliceNodes, ns *NineSlice, w, h float64) + func LerpColor(a, b sg.Color, t float64) sg.Color + func RoundedRectBorderMesh(w, h, r, bw float64, segments int) ([]engine.Vertex, []uint16) + func RoundedRectGradientMesh(w, h, cornerRadius float64, segments int, g *GradientColors) ([]engine.Vertex, []uint16) + func RoundedRectGradientMeshPerCorner(w, h float64, rTL, rTR, rBR, rBL float64, segments int, g *GradientColors) ([]engine.Vertex, []uint16) + func RoundedRectPoints(w, h, r float64, segments int) []sg.Vec2 + func RoundedRectPointsPerCorner(w, h float64, rTL, rTR, rBR, rBL float64, segments int) []sg.Vec2 + func SubRegion(base sg.TextureRegion, x, y, w, h uint16) sg.TextureRegion + type Gradient struct + Colors GradientColors + Mode GradientMode + type GradientColors struct + BottomLeft sg.Color + BottomRight sg.Color + TopLeft sg.Color + TopRight sg.Color + type GradientMode int + const GradientModeFourCorner + const GradientModeH + const GradientModeV + type Insets struct + Bottom float64 + Left float64 + Right float64 + Top float64 + func (i Insets) Horizontal() float64 + func (i Insets) IsAuto() bool + func (i Insets) Vertical() float64 + type NineSlice struct + CenterFill *GradientColors + InnerRegion Rect + Insets Insets + Region sg.TextureRegion + type NineSliceNodes struct + B *sg.Node + BL *sg.Node + BR *sg.Node + C *sg.Node + L *sg.Node + R *sg.Node + T *sg.Node + TL *sg.Node + TR *sg.Node + func CreateNineSliceNodes(name string, container *sg.Node, ns *NineSlice) *NineSliceNodes + type Rect struct + Height float64 + Width float64 + X float64 + Y float64