O'Reilly logo

Mastering openFrameworks: Creative Coding Demystified by Denis Perevalov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Graphical user interface

When you play with our particle system, soon you find that adjusting parameters by changing their values right in the code is very uncomfortable. The solution for this is adding the Graphical User Interface (GUI) to the project that shows sliders for changing the parameters using the mouse, as shown in the screenshot:

Graphical user interface

We have implemented a similar GUI in the example project 03-Particles/04-Particles. There are two new classes: Slider for a single slider and Interface for managing all the sliders.

While running the project, you can adjust all the control parameters using the mouse. Also, you can load and save parameters' settings ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required