I noticed that the argument to globalCompositeOperation can only be one of 11 possible choices (at least, on most browsers. Firefox has more, but they're not widely supported), so I changed its argument from Text to a CompositeMode ADT to enforce greater type safety.
I'll make this a pull request for now, since we should probably avoid making significant API changes while the blank-canvas paper is being written.
I noticed that the argument to
globalCompositeOperation
can only be one of 11 possible choices (at least, on most browsers. Firefox has more, but they're not widely supported), so I changed its argument fromText
to aCompositeMode
ADT to enforce greater type safety.I'll make this a pull request for now, since we should probably avoid making significant API changes while the
blank-canvas
paper is being written.