Lua colorlib: extracolormap support
Field | Description | Returns | Accepts |
---|---|---|---|
red |
Red color channel | uint8 |
uint8 |
green |
Green color channel | uint8 |
uint8 |
blue |
Blue color channel | uint8 |
uint8 |
alpha |
Alpha | uint8 |
uint8 |
colors |
RGBA colors | uint8 r, uint8 g, uint8 b, uint8 a |
uint32 rgb , uint32 rgba , string rgb_web_color , string rgba_web_color
|
fade_red |
Red fade color channel | uint8 |
uint8 |
fade_green |
Green fade color channel | uint8 |
uint8 |
fade_blue |
Blue fade color channel | uint8 |
uint8 |
fade_alpha |
Fade alpha | uint8 |
uint8 |
fade_colors |
Fade RGBA colors | uint8 r, uint8 g, uint8 b, uint8 a |
uint32 rgb , uint32 rgba , string rgb_web_color , string rgba_web_color
|
fade_start |
Fade start range | uint8 |
uint8 |
fade_end |
Fade end range | uint8 |
uint8 |
colormap |
Light table | lighttable |
Cannot be set |
Access | Description | Returns |
---|---|---|
lighttable table[row] |
Gets a row (indexes range from 1 to 34) from a light table | Colormap for the specified row |
Function | Parameters | Description | Returns |
---|---|---|---|
P_GetSectorColormapAt |
sector sec, fixed x, fixed y, fixed z |
Returns the sector sec 's color at the specified XYZ coordinates. sec can be nil , making the call equivalent to P_GetSectorColormapAt(R_PointInSubsector(x, y).sector, x, y, z)
|
Sector colormap (extracolormap_t ) |
New sector fields:
Field | Description | Returns | Accepts |
---|---|---|---|
colormap |
The colormap of the sector, if it has one. |
extracolormap_t or nil
|
Cannot be set |
Edited by Lactozilla
Merge request reports
Activity
Filter activity
added Documentation Feature Lua labels
mentioned in merge request !2094 (merged)
changed milestone to %2.2.14
added 338 commits
-
a54d3a27...a68440c4 - 337 commits from branch
next
- dea51963 - Merge branch 'next' into lua-extracolormap
-
a54d3a27...a68440c4 - 337 commits from branch
added 112 commits
-
9d650b0d...7962b243 - 109 commits from branch
next
- 0a3f2ec4 - Merge remote-tracking branch 'stjr/next' into lua-extracolormap
- 563ce141 - Fix P_GetSectorColormapAt
- 46bd7344 - Rename 'sector.extracolormap' to just 'sector.colormap'
Toggle commit list-
9d650b0d...7962b243 - 109 commits from branch
mentioned in commit c7cae406
Please register or sign in to reply