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

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 11
Render Body 0
Render Sidebar 8