Hello folks, if you're curious about how VectorDra...
# feed
l
Hello folks, if you're curious about how VectorDrawables and SVG work, and wonder if you could generate nice graphics with quite short Kotlin code, this article is for you! https://blog.louiscad.com/optimized-chessboard-pattern-vectordrawable-in-kotlin
🆒 4
👍🏾 1
👍 7
e
https://github.com/alexjlockwood/avocado (formerly avgo, influenced by svgo) performs many optimizations on svgs and vector drawables, including minimizing paths
what I do for our app is "DEV" etc. color+text labels overlaid on top of launcher icon for non-release builds, by way of • imagemagick scripts to automatically generate icon overlay images from text (as bitmap icons are still needed for pre-API 24) • inkscape scripts to automatically generate icon overlay svgs from text • Gradle plugin which automatically converts and merges the icons for each application variant
l
I'm considering making an automated tool to generate raster icons out of adaptive icons now that I know how to convert VectorDrawables to png, so I don't have to deal with cumbersome icon changes ever again.