Ball - no blue colors according to constant GAME_BACKGROUND to prevent ghosting
This commit is contained in:
parent
463b562645
commit
c21af90605
@ -86,8 +86,9 @@ public class Ball implements IBall {
|
||||
public void newRandomColor() {
|
||||
Random random = new Random();
|
||||
|
||||
// random hue without red colors
|
||||
float hue = (random.nextInt(18000) + 6000) / 10000f;
|
||||
// random hue without blue colors to prevent ghosting
|
||||
// 65 <~ 170/255
|
||||
float hue = (random.nextInt(65)) / 100f;
|
||||
|
||||
// saturation between 0.5 and 0.7
|
||||
float saturation = (random.nextInt(2000) + 5000) / 10000f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user