Discover Packages
github.com/smackem/ylang
internal
lang
package
Version:
v0.0.0-...-fbe25eb
Opens a new window with list of versions in this module.
Published: Aug 25, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Boolean is the type used to express booleans
FalseVal is the Boolean false
TrueVal is the Boolean false
Color represents a color with RGBA channels, each channel value held as a floating-point number
with range 0..255. This range can be exceeded as a result of a computation.
NewRgba creates a Color from r,g,b,a channel values.
NewSrgba creates a Color from r,g,b,a channel values which are normalized to the range 0..1.
Clamp returns a Color with all channel values clamped to 0..255
Intensity returns the brightness of a color normalized to 0..255.
ScA returns the alpha value normalized to 0..1
ScB returns the blue channel value normalized to 0..1
ScG returns the green channel value normalized to 0..1
ScIntensity returns the brightness of a color normalized to 0..1
ScR returns the red channel value normalized to 0..1
Nil is the type used to express the absence of a value
NilVal is the only value a Nil type can have
Number is the number type used by the interpreter
Clamp clamps a number to the range of 0..255
Str is used to express strings
Source Files
¶
Click to show internal directories.
Click to hide internal directories.