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 ?

I’m planning on adding things as I need them. Is there a specific feature you need?

@UberGoober - the only thing I can think of, planning to tackle myself soon, is a rectangle with the top and bottom being sliders (small sphere as point locater on top and bottom line). Joining the controls with a line then enables you to specify limits to modify parameters - this is often used in image editors for changing the colour characteristics of an image such as changing a negative to a positive image for each of r, g and b.

Can’t picture it, really. Do you have an image?