ImmediateUI color wheel, slider, segmented control

immediateUI.zip (136.0 KB)

With the use of ChatGPT my pokey little immediateUI project can now draw color wheels and sliders with the same simplicity as Codea’s native 2D drawing functions.

The syntax for sliders is:

slider(name, x, y, width, min, max, initial, callback, optionalTextColorOverride)

The syntax for the color wheel is:

colorWheel(name, x, y, radius, callback)

Simply call them in your draw function and watch em work!

Oh yeah it can also now display windows (containers) that contain multiple immediateUI controls, as shown:

…containers are still called in draw() just like 2D elements like rect and ellipse, but they’re a slight bit more complex than the other controls

@UberGoober - very impressive, I think I can use some of your features in my projects. Are you planning on expanding and refining further ?