Improved docstring
This commit is contained in:
parent
4db343f284
commit
f68031e365
33
colors.lua
33
colors.lua
|
@ -1,21 +1,18 @@
|
||||||
--[[
|
--- 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.
|
||||||
|
--
|
||||||
LICENSE is BEER-WARE.
|
-- ## Documentation
|
||||||
|
--
|
||||||
# Documentation #
|
-- Supports following color formats:
|
||||||
|
--
|
||||||
Supports following color formats:
|
-- * `rgb255`: The standard computer representation, with each
|
||||||
|
-- channel (red, green, blue, alpha) in the [0-255] range. Alpha
|
||||||
- `rgb255`: The standard computer representation, with each
|
-- channel (index 4), can either be explicit or implicit (and taken
|
||||||
channel (red, green, blue, alpha) in the [0-255] range. Alpha
|
-- to be 255.)
|
||||||
channel (index 4), can either be explicit or implicit (and taken
|
-- * `rgb1`: As above, except channels are in the [0-1] range.
|
||||||
to be 255.)
|
-- * `hsl`: Hue-saturation-lightness representation (does not support alpha).
|
||||||
- `rgb1`: As above, except channels are in the [0-1] range.
|
-- Hue channel is in the [0-1] range, instead of the standard [0-2*pi] 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.
|
|
||||||
]]
|
|
||||||
|
|
||||||
local GAMMA = 2.2
|
local GAMMA = 2.2
|
||||||
local GAMMA_INV = 1/GAMMA
|
local GAMMA_INV = 1/GAMMA
|
||||||
|
|
Loading…
Reference in New Issue
Block a user