A utility library providing classes and functions for working with various color spaces and color values.
Lua libraries for use by other mods and submods that are parts of a larger mod.
Version: 1.1.1
Date: 23. 06. 2026
Compatibility:
- Support for Factorio 2.1
Version: 1.1.0
Date: 30. 04. 2026
Features:
- Conversion to and from game colors using the array style
- Conversion to game colors without alpha
- Conversion from game colors with component values in the range 0-255
- Conversion from game colors with component values premultiplied by alpha
Version: 1.0.0
Date: 29. 04. 2026
Major Features:
- Initial release
- 9 color spaces: RGB, sRGB, HSL, HSV, HWB, CIELAB, CIELCh, Oklab, Oklch
Features:
- Conversion between color spaces
- Conversion to and from game color
- Interpolation between two colors
Minor Features:
- Conversion to and from CSS-compatible components
- Gamut clamping and component normalization
- Clone with mutation