Garry's Mod Wiki

DRGBPicker:GetPosColor

  table, number, number DRGBPicker:GetPosColor( number x, number y )

Description

This is used internally - although you're able to use it you probably shouldn't.

Returns the color at given position on the internal texture.

Arguments

1 number x
The X coordinate on the texture to get the color from
2 number y
The Y coordinate on the texture to get the color from

Returns

2 number
The X-coordinate clamped to the texture's width.
3 number
The Y-coordinate clamped to the texture's height.