Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color: setting color by hsl and fixing l results in almost identical colors #51

Open
borttrob opened this issue Dec 22, 2015 · 1 comment
Assignees
Labels

Comments

@borttrob
Copy link

Hello *,

just started to use parallax library (Great job by the way) and encountered the following problem. If I fix the light parameter when setting a color by HSL, it results in almost the same RGB colors. Please see the following code as an example.

 public static void main(String[] args) {

        final Random random1 = new Random(1);
        final Color color1 = new Color();
        color1.setHSL(random1.nextFloat(), random1.nextFloat(), 0.5f);

        final Random random2 = new Random(2);
        final Color color2 = new Color();
        color2.setHSL(random2.nextFloat(), random2.nextFloat(), 0.5f);

        System.out.println("Color1: " + color1);
        System.out.println("Color2: " + color2);
    }

Thanks

@thothbot thothbot added the bug label Dec 22, 2015
@thothbot
Copy link
Owner

Thank you for your report, this will be fixed in 2.0

@thothbot thothbot added this to the ver 2.0 milestone Jan 27, 2016
@thothbot thothbot self-assigned this Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants