actiona icon indicating copy to clipboard operation
actiona copied to clipboard

mycolor.red() mycolor.green() mycolor.blue() is not a function

Open fue36 opened this issue 3 years ago • 1 comments

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

fue36 avatar Jun 18 '21 15:06 fue36

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.

Jmgr avatar Jun 20 '21 11:06 Jmgr