~samwhited/oslp

oslp/art/render.fish -rwxr-xr-x 331 bytes
fd4efb38Sam Whited Bump version to 2.5.0 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env fish

set dirs 'mdpi' 'hdpi' 'xhdpi' 'xxhdpi' 'xxxhdpi'
set factor 1 1.5 2 3 4
set images 'ic_launcher' 'marker'

for image in $images
	for i in (seq (count $dirs))
		set size (math "$factor[$i] * 48")
		set p "../src/main/res/drawable-$dirs[$i]/$image.png"
		inkscape -e $p -C -h $size -w $size $image.svg
	end
end