Hex Color To CSS Filter, Converter

cross-posted from: programming.dev/post/7667731

Hi,

As CSS do not have a color-overlay[^1] filter.

There is some heavy work around:

isotropic.co/tool/hex-color-to-css-filter/

that use a combination of CSS filter to target the desired color…

Those online calculators are neat, but I would like an offline version, in case the provided one become inaccessible.

I’ve downloaded the zip of codepen.io/sosuke/pen/Pjoqqp

But it doesn’t work locally… :/

So I would like to know, if someone know one in 🐍 Python ? or how can I make one then ?

Or if someone know another way to have the color-overlay[^1] effect in html\css, I’m all ears !

Thank.

[^1]: To apply like in Photoshop a color on the shape of the image (so not on the parts that have transparency.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • css@programming.dev
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • megavids
  • lostlight
  • All magazines