Types
PixieError = object of ValueError
- Raised if an operation fails.
Procs
proc fractional(v: float32): float32 {...}{.inline, raises: [], tags: [].}
-
Returns unsigned fraction part of the float.
-13.7868723 -> 0.7868723 proc lerp(a, b: uint8; t: float32): uint8 {...}{.inline, raises: [], tags: [].}
- Linearly interpolate between a and b using t.
proc lerp(a, b: ColorRGBX; t: float32): ColorRGBX {...}{.inline, raises: [], tags: [].}
- Linearly interpolate between a and b using t.