actiona
actiona copied to clipboard
mycolor.red() mycolor.green() mycolor.blue() is not a function
var mycolor = new Color(10, 11, 12); Console.print(mycolor.toString()); // Functions Console.print(mycolor.red()); // Returns exception "mycolor.red' is not a function
Tested 3.10.1 (ubuntu 20.04) & 3.9.2 (ubuntu 18.04)
Reference https://wiki.actiona.tools/doku.php?id=en:code:core:color
Thanks. Yes this is a known documentation issue. You should be able to access mycolor.red
as a property, not a function. So Console.print(mycolor.red);
should work.