Versions in this module Expand all Collapse all v0 v0.3.12 Jul 16, 2025 v0.3.11 May 19, 2025 Changes in this version + func AreSame[T comparable](s Sides[T]) bool + func AreZero[T comparable](s Sides[T]) bool + type Colors struct + func NewColors(vals ...color.RGBA) Colors + func (s *Colors) SetAny(a any, base color.Color) error + func (s *Colors) SetString(str string, base color.Color) error + type Floats struct + func NewFloats(vals ...float32) Floats + func (sf Floats) Add(other Floats) Floats + func (sf Floats) Max(other Floats) Floats + func (sf Floats) Min(other Floats) Floats + func (sf Floats) MulScalar(s float32) Floats + func (sf Floats) Pos() math32.Vector2 + func (sf Floats) Round() Floats + func (sf Floats) Size() math32.Vector2 + func (sf Floats) Sub(other Floats) Floats + func (sf Floats) ToValues() Values + type Indexes int32 + const Bottom + const IndexesN + const Left + const Right + const Top + func IndexesValues() []Indexes + func (i *Indexes) SetInt64(in int64) + func (i *Indexes) SetString(s string) error + func (i *Indexes) UnmarshalText(text []byte) error + func (i Indexes) Desc() string + func (i Indexes) Int64() int64 + func (i Indexes) MarshalText() ([]byte, error) + func (i Indexes) String() string + func (i Indexes) Values() []enums.Enum + type Sides struct + Bottom T + Left T + Right T + Top T + func NewSides[T any](vals ...T) *Sides[T] + func (s *Sides[T]) Set(vals ...T) *Sides[T] + func (s *Sides[T]) SetAll(val T) *Sides[T] + func (s *Sides[T]) SetAny(a any) error + func (s *Sides[T]) SetBottom(bottom T) *Sides[T] + func (s *Sides[T]) SetHorizontal(val T) *Sides[T] + func (s *Sides[T]) SetLeft(left T) *Sides[T] + func (s *Sides[T]) SetRight(right T) *Sides[T] + func (s *Sides[T]) SetString(str string) error + func (s *Sides[T]) SetTop(top T) *Sides[T] + func (s *Sides[T]) SetVertical(val T) *Sides[T] + func (s *Sides[T]) Zero() *Sides[T] + type Values struct + func NewValues(vals ...units.Value) Values + func (sv *Values) ToDots(uc *units.Context) Floats + func (sv Values) Dots() Floats