Slightly higher contrast black palette

This commit is contained in:
Anuken
2020-06-13 12:24:50 -04:00
parent 9e96954eaa
commit f55fb48ea7
7 changed files with 7 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 895 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 994 B

After

Width:  |  Height:  |  Size: 991 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 B

After

Width:  |  Height:  |  Size: 281 B

View File

@ -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{