Colour Palette
-
@DanH It's already available :
const GLOBAL_COL_1 = 0xFFFFFFFF; const GLOBAL_COL_2 = 0xFF101010; //etc...
-
@Matt_SF Ha, yes indeed, I was thinking something more hardcoded into HISE.
-
@DanH Yeah I was just messing with you, but I got what you meant and even if it's not an important feature, sometimes it would be nice to have global colors and be able to change them wisually.
-
@DanH said in Colour Palette:
@Matt_SF Ha, yes indeed, I was thinking something more hardcoded into HISE.
You mean something like that?
If I enter the word "colour:" here, a colour selector appears.
-
@MikeB no, more something in the toolbar at the top of HISE where you also store some colours that you use regularly
-
Necroing this topic because I think it's still a nice idea to have a palette in a popup window.
Of course I use constant like many of us, and external colour editor, but during development I always feel it's painful. When you have multiple colours with several shades for each, variable names can be very confusing so you try this one, then this other one...
Another idea is to have a colour specific variable type (but such a thing might be too intrusive to the javascript engine), so the script editor can show or popup the colour aside of it or when hovering. It could also be displayed in the ScriptWatchTable.
-
@ustk It would be cool if the code editor showed a colour chip before/after every colour defined in the code. VS Code & Cursor do this, as do many other code editors, I'm sure.
It wouldn't need a colour-specific variable, just some judicious regex in the code formatter to find colour formats and display a colour chip.

With an editor preference, of course. Not everyone wants Christmas lights all over their code!

-
@ustk Just made a quick proof of concept in Claude. Haven't read all the code yet, so no idea if it's well implemented or performant, but it does look kinda nice!

-
@dannytaurus supreme sorcerer grade

-
@dannytaurus I like this idea. I wouldn't mind it one bit!

-
@ustk This one's not me, it's all Claude in Cursor. Just have to give it good prompts!

-
