Packed Liquid Drawer

This commit is contained in:
Voz-Duh
2020-09-30 15:58:11 +03:00
parent c3274622b2
commit 20e56ed3d3
11 changed files with 24 additions and 38 deletions

View File

@@ -96,6 +96,20 @@ public class Drawf{
Draw.color();
}
public static void liquid(TextureRegion region, float x, float y, float alpha, Color color, float rotation){
Draw.color(color);
Draw.alpha(alpha);
Draw.rect(region, x, y, rotation);
Draw.reset();
}
public static void liquid(TextureRegion region, float x, float y, float alpha, Color color){
Draw.color(color);
Draw.alpha(alpha);
Draw.rect(region, x, y);
Draw.reset();
}
public static void dashCircle(float x, float y, float rad, Color color){
Lines.stroke(3f, Pal.gray);
Lines.dashCircle(x, y, rad);