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.

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: 41ms

DB GetPage 4
Generate Html 6
SaveChanges 21
Render Body 0
Render Sidebar 7