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() {
|
public void newRandomColor() {
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
|
|
||||||
// random hue without red colors
|
// random hue without blue colors to prevent ghosting
|
||||||
float hue = (random.nextInt(18000) + 6000) / 10000f;
|
// 65 <~ 170/255
|
||||||
|
float hue = (random.nextInt(65)) / 100f;
|
||||||
|
|
||||||
// saturation between 0.5 and 0.7
|
// saturation between 0.5 and 0.7
|
||||||
float saturation = (random.nextInt(2000) + 5000) / 10000f;
|
float saturation = (random.nextInt(2000) + 5000) / 10000f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user