mbasaglia / Qt-Color-Widgets

Color wheel widget and dialog for Qt
147 stars 54 forks source link

Harmony editors #28

Closed caryoscelus closed 7 years ago

caryoscelus commented 7 years ago

Hello,

First of all, thanks for your awesome library! I'm working on an advanced color selector widget (to be used in OpenToonz and RainyNite). The first feature i want to implement in it is "harmony editors", allowing user to select few colors connected by harmony (see e.g. http://www.tigercolor.com/color-lab/color-theory/color-theory-intro.htm#color_harmonies). So here it is, as an optional API for ColorWheel widget.

Here's a demo app that makes use of harmony editor: https://notabug.org/caryoscelus/color-widgets-demos

Screenshot: color_selector_2

mbasaglia commented 7 years ago

Another thing I noticed is if you add a symmetric or opposite harmony which is set to be editable but the relative_to is not editable, does not end up as editable.

eg:

color_widgets::ColorWheel wheel;
auto harmony = wheel.addHarmony(-0.125, false);
wheel.addSymmetricHarmony(harmony, true);
wheel.show();

To be fair this seems reasonable, but maybe then they should just inherit their "editability" from the harmony they are referencing.

mbasaglia commented 7 years ago

Looks good

mbasaglia commented 7 years ago

Thanks