From d762cb44db39f96536b970bd3828d2051ff2967c Mon Sep 17 00:00:00 2001 From: DonoG Date: Fri, 5 May 2017 00:15:37 +1000 Subject: [PATCH] Update HSprite.java Setting alpha values should now work --- src/main/java/hype/HSprite.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/hype/HSprite.java b/src/main/java/hype/HSprite.java index ff515027..fb59e9a8 100755 --- a/src/main/java/hype/HSprite.java +++ b/src/main/java/hype/HSprite.java @@ -48,7 +48,8 @@ public void draw( PGraphics g, boolean usesZ, ) { g.textureMode(PConstants.NORMAL); g.noStroke(); - g.tint(fill); + //g.tint(fill); + g.tint(fill,alphaPc*100) //enable alpha g.pushMatrix(); g.translate(drawX, drawY); @@ -64,4 +65,4 @@ public void draw( PGraphics g, boolean usesZ, g.popMatrix(); } -} \ No newline at end of file +}