Garry's Mod Wiki

ITexture:GetColor

table ITexture:GetColor( number x, number y )

Description

Returns the color of the specified pixel, only works for textures created from PNG files.

The returned color will not have the color metatable.

Issue Tracker: 2407

Arguments

1 number x
The X coordinate.
2 number y
The Y coordinate.

Returns

1 table
The color of the pixel as a Color.

Page Links


Special Pages


Wikis

?

Render Time: 72ms

DB GetPage 40
Generate Html 9
SaveChanges (1) 11
Render Body 0
Render Sidebar 9