Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.material.getColor

C๐Ÿท๏ธ Material

Part of StarfallEx namespace

๐Ÿ”— External
material.getColor(path, x, y)
View on GitHub|lua/starfall/libs_cl/material.lua:281
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Returns a color pixel value of the $basetexture of a .png or .jpg material.

Parameters

NameTypeDescription
pathstringThe path of the material (don't include .vmt in the path)
xnumberThe x coordinate of the pixel
ynumberThe y coordinate of the pixel

Returns

TypeDescription
ColorThe color value

Examples

No examples available.

Used In

No usages found in the codebase.