Documentation ¶
Index ¶
- Constants
- func CollectFloats(values []interface{}, buff []float64) int
- func ParseRGBA(values []interface{}) (c mat.RGBA, ln int)
- type RawStyle
- func (r RawStyle) AABB(key string, def mat.AABB) (m mat.AABB)
- func (r RawStyle) Bool(key string, def bool) (v bool)
- func (r RawStyle) Float(key string, def float64) (v float64)
- func (r RawStyle) Ident(key, def string) string
- func (r RawStyle) Int(key string, def int) (v int)
- func (r RawStyle) RGBA(key string, def mat.RGBA) (c mat.RGBA)
- func (r RawStyle) Region(key string, regions map[string]mat.AABB, def mat.AABB) mat.AABB
- func (r RawStyle) Sub(key string, def RawStyle) (v RawStyle)
- func (r RawStyle) Vec(key string, def mat.Vec) (u mat.Vec)
Constants ¶
View Source
const Fill float64 = 100000.767898765556788777667787666
Fill is constant important to ui, it is also redeclare here so check it out
Variables ¶
This section is empty.
Functions ¶
func CollectFloats ¶
CollectFloats collects consecutive floating point numbers and returns how match was collected
func ParseRGBA ¶
ParseRGBA parses slice if interfaces into color and returns how big the color was
syntax:
name - simple name of color can be enough if its contained in map in mlok/mat/rgba package a - specify only one float/int channel and mat.Alpha(alpha) will be returned r, g, b - specify threes floats/ints and mat.RGB(r, g, b) will be returned r, g, b, a - specify four floats/ints and mat.RGBA{r, g, b, a} will be returned hex - hex color notation
Types ¶
type RawStyle ¶
RawStyle is wrapper of goss.RawStyle and adds extra functionality
func (RawStyle) AABB ¶
AABB parser margin under the key, if parsing fails or margin is not present, default is returned
func (RawStyle) RGBA ¶
RGBA returns a color under the key, if color parsing fails or color is not present, def is returned this also accepts names mapped in mlok/mat/rgba.Colors
Click to show internal directories.
Click to hide internal directories.