Moved some blocks around

This commit is contained in:
Anuken
2020-05-31 14:39:10 -04:00
parent 0842c3f0a0
commit bd349803d3
15 changed files with 852 additions and 799 deletions
+13 -2
View File
@@ -11,7 +11,7 @@ import java.awt.image.BufferedImage
import java.util.List
import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
import java.util.concurrent.TimeUnit
def genFolder = "../core/assets-raw/sprites_out/generated/"
def doAntialias = !project.hasProperty("disableAntialias")
@@ -33,7 +33,7 @@ def transformColors = { List<List<String>> list ->
//d4816b
transformColors([["6e7080", "989aa4", "b0bac0"], ["bc5452", "ea8878", "feb380"], ["de9458", "f8c266", "ffe18f"], ["feb380", "ea8878", "bc5452"]])
transformColors([["a387ea", "8a73c6", "5c5e9f"], ["6e7080", "989aa4", "b0bac0"], ["bc5452", "ea8878", "feb380"], ["de9458", "f8c266", "ffe18f"], ["feb380", "ea8878", "bc5452"]])
def antialias = { File file ->
if(!doAntialias) return
@@ -189,6 +189,17 @@ def scaleImage = { File file ->
def tileImage = { File file ->
def image = ImageIO.read(file)
for(x in 0..image.width-1){
for(y in 0..image.height-1){
if(x > (image.height - 1 - y)){
def rx = image.height - 1 - y
def ry = x
image.setRGB(x, y, image.getRGB(rx, image.height - 1 - ry))
}
}
}
def result = new BufferedImage(image.width * 2, image.height * 2, image.getType())
Graphics2D graphics = result.createGraphics()
graphics.drawImage(image, image.width, 0, -image.width, image.height, null)