danielepiccone / ditherjs

A javascript library which dithers an <img> using a fixed palette
http://danielepiccone.github.io/ditherjs/
131 stars 22 forks source link

dither given canvas element in place #6

Open xosofox opened 4 years ago

xosofox commented 4 years ago

For a project I needed to dither an already existing canvas, so I added this entry point for window.HTMLCanvasElement

Also added a canvas with a simple gradient to the client demo

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 18


Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/client.js 5 13 38.46%
<!-- Total: 14 22 63.64% -->
Totals Coverage Status
Change from base Build 14: -1.8%
Covered Lines: 384
Relevant Lines: 406

💛 - Coveralls