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

ColorIndex in Oscilloscope, why? #18

Closed
HelgeStenstrom opened this issue Jun 13, 2019 · 8 comments
Closed

ColorIndex in Oscilloscope, why? #18

HelgeStenstrom opened this issue Jun 13, 2019 · 8 comments
Labels

Comments

@HelgeStenstrom
Copy link
Contributor

colorIndex = (colorIndex == colorSize - 1) ? 0 : colorIndex + 1;

would be simpler expressed (I haven't tested) as

colorIndex = colorIndex++ % colorSize;

But what it the purpose of updating colorIndex?

@goxr3plus
Copy link
Owner

goxr3plus commented Jun 13, 2019

Oh you are digging into the madness of Visualizer, would you believe me if i tell you i have written this code during 15 hours straight coding :)?

I think i am changing the colors of the line based on something.

I plan to make it a separate library which is not part of XR3Player code, so we will have multiple modules.

@goxr3plus
Copy link
Owner

goxr3plus commented Jun 13, 2019

Did you manage to run XR3Player on Java 11? I am having problems after starting it on making amplitudes work, Jave2 library is not exporting the FFMPEG correctly.

Ah i will fix everything, i watched 11. 5hours tutorials for Java 9 JPMS modular system.

@HelgeStenstrom
Copy link
Contributor Author

I haven't really tried yet. I tried and failed before I learned that I have to supply some VM arguments, but haven't done so.

@goxr3plus
Copy link
Owner

goxr3plus commented Jun 14, 2019 via email

@HelgeStenstrom
Copy link
Contributor Author

Did you pick Java 12 from Oracle or from https://openjdk.java.net?

@goxr3plus
Copy link
Owner

goxr3plus commented Jun 14, 2019 via email

@HelgeStenstrom
Copy link
Contributor Author

I did it, have Java 12 now.

@goxr3plus
Copy link
Owner

Glad to hear :) Let me know your opinion when you finally run it :)

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