Closed bennlich closed 3 years ago
Good catch! Patches use pixels, believe it or not! I try to convert everything to typedColors but this is a leak.
OK, a quick note: The way to color all the patches the same color is:
{
patchesColor: 'red'
}
i.e. there is no dependency on "p".
Basically it is treated as "clear the canvas with this color"
The form (with the great colors!) should work, let me poke around.
OK I think I found the problem. Damn there are a lot of color formats in JS!
It is less efficient to set each patch's color, that's thousands of operations, one per patch. God do I need to document this stuff.
OK, committed the fix.
In drawOptions, this works:
But this does not:
Though it did lead to this beautiful image: