Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Color Wheel
#4
Very nice!

I might add an alternative "color picker" to ngui using that for hue selection. The current one uses a rectangle where the horizontal axis represents hue and the vertical saturation. With a hue wheel you'd need two sliders to control the saturation and brightness, right? But I think it would be easier to use than the current color picker:

Code:
include "ngui.n7"

set window "Color picker", 640, 480
set redraw off

root = VBox(SIZE_EXPAND, SIZE_EXPAND)
root.SetHalign(ALIGN_CENTER)
root.SetSpacing(8)

colorPicker = ColorPicker(function(wdg, r, g, b)
        pln "Selected color: " + r + ", " + g + ", " + b
    endfunc)
   
root.Add(Header("Color picker", SIZE_AUTO, SIZE_AUTO))
root.Add(colorPicker)

EnterMainLoop(root)
Reply


Messages In This Thread
Color Wheel - by 1micha.elok - 02-26-2025, 01:13 AM
RE: Color Wheel - by kevin - 02-26-2025, 02:43 PM
RE: Color Wheel - by johnno56 - 02-27-2025, 08:23 PM
RE: Color Wheel - by Marcus - 03-01-2025, 07:38 AM
RE: Color Wheel - by 1micha.elok - 03-02-2025, 11:35 PM
RE: Color Wheel - by kevin - 03-01-2025, 03:14 PM
RE: Color Wheel - by johnno56 - 03-01-2025, 08:12 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)