Transparency does not work with Stroke

We have a problem with stroke. As you remember from A bug in the stroke algorithm, we designed the stroke operator pointing multiple times at the same space, to simplify the paths and avoid intersection problems. However, if you paint multiple times with transparency, this becomes a visible artefact.

Javascript Editor

We can fix this by adding a transfer layer. We do not paint directly to the page, but create an auxiliary bitmap where we paint opaque, and then we apply a copy with transparency from the transfer layer to the page. So we modify the rpnRawDevice. Run it and then the PostScript code again.

Javascript Editor

If you want to go back, run this old class definition again

Javascript Editor

ps20241101.js 3473 lines

https://www.belle-nuit.com/site/files/minimal7.html

My Journey to PostScript