There seems to be no documentation that Color is in KineticJS (let me know if I'm wrong)
I still found through the trial version and an error that I can actually go to the following function: setFill from the Shape class:
someShape.setFill("red"); someShape.setFill("#FF0000"); someShape.setFill("rgb(255,0,0)");
However, you cannot pass:
someShape.setFill(0xff0000); someShape.setFill("rgb(100%,0%,0%)"); someShape.setFill("hsl(360,100,100)"); someShape.setFill("hsv(360,100,100)");
Again, this is a trial version and an error. Is there any final list?
source share