louis-ev / Cargo-Bikes-Size-Comparator

Cargo bike size comparison tool
GNU Affero General Public License v3.0
32 stars 7 forks source link

add line art (edge detect) comparison mode #6

Closed ontl closed 5 months ago

ontl commented 5 months ago

Here's a pitch for adding line art functionality. It adds another offscreen canvas where we process the existing images to generate colorized outlines, before adding them to the primary canvas.

In future it could be improved with a canvas filter or webGL implementation if performance turns out to be too rough, but it seems to work ok in my testing.

I've included an optional default for blending mode depending on whether Photo or Line mode is selected (it's currently commented out).

Thanks!

louis-ev commented 5 months ago

This is fantastic! And very useful, thanks :)

I think I'll add: