Slightly higher contrast black palette
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 895 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 698 B |
Before Width: | Height: | Size: 994 B After Width: | Height: | Size: 991 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 586 B After Width: | Height: | Size: 585 B |
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 281 B |
@ -240,7 +240,8 @@ task swapColors(){
|
||||
|
||||
fileTree(dir: '../core/assets-raw/sprites', include: "**/*.png").visit{ file ->
|
||||
if(file.isDirectory()) return
|
||||
swaps++
|
||||
|
||||
boolean found = false
|
||||
|
||||
def img = ImageIO.read(file.file)
|
||||
for(x in (0..img.getWidth() - 1)){
|
||||
@ -250,10 +251,14 @@ task swapColors(){
|
||||
if(tmpc.a < 0.1f) continue
|
||||
if(map.containsKey(c)){
|
||||
img.setRGB(x, y, (int)map.get(c))
|
||||
found = true
|
||||
}
|
||||
}
|
||||
}
|
||||
ImageIO.write(img, "png", file.file)
|
||||
if(found){
|
||||
swaps++
|
||||
ImageIO.write(img, "png", file.file)
|
||||
}
|
||||
}
|
||||
println "Swapped $swaps images."
|
||||
}else{
|
||||
|