linebender / piet

An abstraction for 2D graphics.
Apache License 2.0
1.23k stars 95 forks source link

Blur methods for PietImages #527

Open longmathemagician opened 1 year ago

longmathemagician commented 1 year ago

This is a draft implementation of a quick-ish blur effect. It was written to support overlay UI elements in druid, but could in theory be used anywhere you want to blur a PietImage. As an example, this is what I'm using it for:

Example image showing the a blurred toolbar

Backend implementation status & notes:

derekdreery commented 1 year ago

Note to self: this should also be possible for piet-svg using filters. I should look at this if/when this PR lands.