View Single Post
04/01/14, 05:57 AM   #3
Sideshow
 
Sideshow's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 36
Originally Posted by Tingle0x539 View Post
GetColorAsRGB()

Returns: number red, number green, number blue

Can someone explain how to read this, I have never encountered a function that returns 3 separate values. Printing out what it returns gives me 1 all the time, how do I read the individual ones?

Edit, think I figured it out: local r, g, b = GetColorAsRGB();
But r g and b are all returning 1, so not sure if I did this correctly.
I suspect a color is needed as argument.
local r, g, b = GetColorAsRGB(myColorVariable);
  Reply With Quote