goome

Sliders and colors

double volume = 0.65;
int count = 42;
uint32_t color = 0xFF4FA3FF;
goome_ui_slider(u, "Volume", &volume, 0, 1, "%.2f");
goome_ui_slider_int(u, "Count", &count, 0, 100);
goome_ui_progress(u, 0.65, "65%");
goome_ui_progress(u, -1, NULL);
goome_ui_color(u, "Highlight", &color);

two sliders, a progress bar, a busy bar and a color picker

The slider format is printf style, only for the number on the right. NULL shows it plain.

goome_ui_progress takes 0 to 1, below 0 is a busy bar that slides back and forth.

goome_ui_color is a swatch and the hex. Click it for a picker with saturation / value, hue and alpha. Returns 1 while it changes the color.

Edit this page on GitHub