mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-27 16:09:57 +07:00
Generator unit cell color tweaks
This commit is contained in:
parent
9e01d1a69d
commit
2e747a481a
@ -24,4 +24,4 @@ android.useAndroidX=true
|
||||
#used for slow jitpack builds; TODO see if this actually works
|
||||
org.gradle.internal.http.socketTimeout=100000
|
||||
org.gradle.internal.http.connectionTimeout=100000
|
||||
archash=fd0ca91e700653d5565e13d8ea5fea87378b022e
|
||||
archash=6c228e534e3950e6254d6e7af4c6db67f834bc1d
|
||||
|
@ -459,11 +459,12 @@ public class Generators{
|
||||
|
||||
//draw base region on top to mask weapons
|
||||
image.draw(get(type.region), true);
|
||||
int baseColor = Color.valueOf("ffa665").rgba();
|
||||
|
||||
Pixmap baseCell = get(type.cellRegion);
|
||||
Pixmap cell = new Pixmap(type.cellRegion.width, type.cellRegion.height);
|
||||
cell.each((x, y) -> cell.set(x, y, Color.muli(baseCell.getRaw(x, y), baseColor)));
|
||||
Pixmap cell = baseCell.copy();
|
||||
|
||||
//replace with 0xffd37fff : 0xdca463ff for sharded colors?
|
||||
cell.replace(in -> in == 0xffffffff ? 0xffa664ff : in == 0xdcc6c6ff ? 0xd06b53ff : 0);
|
||||
|
||||
image.draw(cell, image.width / 2 - cell.width / 2, image.height / 2 - cell.height / 2, true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user