I have an interesting scenario where I am using a -webkit-mask with a radial-gradient to create small dots on a background image. These dots are transparent, allowing the background image to show through.
However, each dot has a gradient color within it.
I am wondering if there is a way to identify the average color in each dot and apply a CSS filter to display a solid color instead?
Essentially, I want to convert any gradient colors in a dot to a single solid color. For example, if a dot has varying shades of blue, I would like to apply a filter that displays a solid blue color.
Attached is a screenshot illustrating this situation:
Is there a CSS solution to achieve this without creating separate divs for each dot and setting the background color manually? Or should I consider experimenting with WebGL?