Garry's Mod Wiki

Garry's Mod Wiki

  table DImage:GetImageColor()

Description

Returns the color override of the image panel.

Returns

1 table col
The color override of the image. Uses the Color.

Example

Creates an image panel and prints the default color override to console.

-- Generic image panel local img = vgui.Create("DImage") img:SetSize(128, 128) img:Center() img:SetImage("cantop") print(img:GetImageColor())
Output:
255 255 255 255

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...