Skip to content

Lua colorlib: extracolormap support

Lactozilla requested to merge lua-extracolormap into next

srb23391

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