We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I don't think this is how it should work but I am a beginner....
When only redrawing on a gui change, the redraw call back seems to be called multiple times depending on the value of the slider.
So if slider is at 40, draw is run 40 times and prints the test text 40 times.
I was imagining it should only run once when slider has changed?
Am I missing something. Any help appreciated!
Example (p5.js):
function setup() { createCanvas(400, 400); test = {number: 1000}; gui = new dat.GUI(); gui.add(test, "number", 1, 100, 1).onFinishChange(redraw); noLoop(); } function draw() { print("TestText", test.number); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I don't think this is how it should work but I am a beginner....
When only redrawing on a gui change, the redraw call back seems to be called multiple times depending on the value of the slider.
So if slider is at 40, draw is run 40 times and prints the test text 40 times.
I was imagining it should only run once when slider has changed?
Am I missing something. Any help appreciated!
Example (p5.js):
The text was updated successfully, but these errors were encountered: