1
0

Compare commits

..

No commits in common. "6d8098651ff9cf9c956049417631520df8d13255" and "9940e56908fc7b9f03b531cc7ed0be63e50c1d62" have entirely different histories.

2 changed files with 15 additions and 14 deletions

View File

@ -2,30 +2,29 @@
<!--- THIS IS AN AUTO-GENERATED FILE ---> <!--- THIS IS AN AUTO-GENERATED FILE --->
<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN ---> <!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN --->
Colors # Colors
This is a collection of functions for performing color operations, designed to work with the LÖVE game engine. This is a collection of functions for performing color operations, designed to work with the LÖVE game engine.
## Documentation ## Documentation
Supports following color formats: Supports following color formats:
rgb255: The standard computer representation, with each
- `rgb255`: The standard computer representation, with each
```
channel (red, green, blue, alpha) in the [0-255] range. Alpha channel (red, green, blue, alpha) in the [0-255] range. Alpha
channel (index 4), can either be explicit or implicit (and taken channel (index 4), can either be explicit or implicit (and taken
to be 255.) to be 255.)
```
- `rgb1`: As above, except channels are in the [0-1] range.
- `hsl`: Hue-saturation-lightness representation (does not support alpha).
``` rgb1: As above, except channels are in the [0-1] range.
hsl: Hue-saturation-lightness representation (does not support alpha).
Hue channel is in the [0-1] range, instead of the standard [0-2*pi] range. Hue channel is in the [0-1] range, instead of the standard [0-2*pi] range.
```
## [Functions](#Functions) ## Functions
interpolate_rgb (c1, c2, t) interpolate_rgb (c1, c2, t)
Interpolation Interpolation
@ -38,7 +37,7 @@ Inversion
parse_rgb (str) parse_rgb (str)
Parsing Parsing
## [None](None)Functions ## Functions
interpolate_rgb (c1, c2, t) interpolate_rgb (c1, c2, t)
@ -83,6 +82,8 @@ parse_rgb (str)
str str
Error handling Error handling
# License # License
``` ```

View File

@ -1,4 +1,4 @@
local _VERSION = '1.0.5' local _VERSION = '1.0.4'
local colors = require ((...) .. '.colors') local colors = require ((...) .. '.colors')
colors._VERSION = _VERSION colors._VERSION = _VERSION