Toot

Written by CFDS on 2024-12-13 at 10:51

Anyone got ideas on how to fade out a canvas - slowly?

The simple method is to โ€“ instead of clearing the canvas between draw calls, filling it with a transparent black rectangle. But with very low opacity settings, this leaves dark gray color areas instead of eventually fading to black.

It just looks ugly, so I tried another strategy here:

https://codepen.io/thykka/full/emOdrBB

(continued ๐Ÿงต...)

[#]canvas #canvasapi #generativeart #creativecoding

=> More informations about this toot | View the thread | More toots from CFDS@vis.social

Mentions

Tags

=> View canvas tag | View canvasapi tag | View generativeart tag | View creativecoding tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113645131844855673
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
220.94795 milliseconds
Gemini-to-HTML Time
0.685599 milliseconds

This content has been proxied by September (ba2dc).