Open david-pfx opened 3 days ago
Good idea, not too hard, but not happy with the syntax. It needs to be a value that could never conflict with the argument of any function (to avoid having to check the function name), but still must be valid JSON. Also, colours must be numbered from zero.
{"fillStyle":0} {"fill":[]}
hkmg: It is easy to change the color for normal sprites with tags, but it is troublesome for canvas sprites with tags. Can't we define color1, color2, etc in the first line of canvas sprites the same as what we do in normal sprites? The following serves as an exmaple.
For colour, we can use default palette or hex code.