mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 15:02:03 -08:00
Shadow with width/height (#4609)
This commit is contained in:
parent
4f0f2499be
commit
569293e577
1 changed files with 6 additions and 0 deletions
|
|
@ -111,6 +111,12 @@ public class Drawf{
|
|||
Draw.rect(region, x, y);
|
||||
Draw.color();
|
||||
}
|
||||
|
||||
public static void shadow(TextureRegion region, float x, float y, float width, float height, float rotation){
|
||||
Draw.color(Pal.shadow);
|
||||
Draw.rect(region, x, y, width, height, rotation);
|
||||
Draw.color();
|
||||
}
|
||||
|
||||
public static void liquid(TextureRegion region, float x, float y, float alpha, Color color, float rotation){
|
||||
Draw.color(color, alpha);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue