ku-fpg / blank-canvas

A Haskell API into HTML5 Canvas
BSD 3-Clause "New" or "Revised" License
72 stars 14 forks source link

CompositeMode ADT #68

Closed RyanGlScott closed 6 years ago

RyanGlScott commented 9 years ago

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.

RyanGlScott commented 6 years ago

Closing stale PR.