style

package
v0.0.0-...-d89ebf2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Border

type Border struct {
	// The radius of the border (how much it curves).
	Radius string

	// The level of detail in the radius.
	// This value is ignored if the Radius is empty.
	RadiusSubdivisions int

	// The thickness of the border.
	Size string

	// The color of the border
	Color Dye
}

An instance of a widget's border attribute.

type Dye

type Dye struct {
	// The Red, Green, Blue, and Alpha style channels.
	// R, G, and B go from 0 to 255 and A goes from 0 to 1.
	R, G, B, A float32
}

An instance of a color using the red, green, blue, and alpha channels.

func BLACK

func BLACK() Dye

Base style

func BLUE

func BLUE() Dye

Base style

func GREEN

func GREEN() Dye

Base style

func ORANGE

func ORANGE() Dye

Base style

func PINK

func PINK() Dye

Base style

func PURPLE

func PURPLE() Dye

Base style

func RED

func RED() Dye

Base style

func WHITE

func WHITE() Dye

Base style

func YELLOW

func YELLOW() Dye

Base style

type Font

type Font struct {
	// The physical size of the text.
	FontSize int
}

The visual text settings of a widget.

type Shadow

type Shadow struct {
	// The position of the shadow relative to the center of the widget.
	Offset math.Vector2

	// This variable ultimately controls how hard the shadow is.
	// Zero is complete hardness and higher values progressively increase the shadow softness.
	Height float32
}

Jump to

Keyboard shortcuts

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