Having X different hardcoded backgrounds with differing colors (blue, red, green, etc… all from the suru palette)
Then check which of the primary/secondary/whatever you check has the least difference to one of those colored backgrounds and then use that one. This way you could use the highest resolution availible for that appgrid view (256@2)
thanks to @jaggers this doesn’t seem necessary, since recoloring the tile doesn’t reduce the resolution.
What happens is that the script surufies all the available icon sizes in a nice and sharp way, tile included, however when app grid doesn’t find the appropriate size, it takes the closer tiled icon and zooms it and again tile included, which now looks blurry as well.
I could create an icon (e.g firefox one) with tile at 256px and the logo zoomed from a lower resolution to 256, the tile would be crisp, but I expect the logo to be blurry anyway.
The limit is the icon size, but let’s see how it goes
Background colours are dull. Can we go for brighter shades?
I think so, but priority is now sharpness, so I haven’t spent much time looking for the best color, yet.