You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same way you can scrub numbers, you should be able to scrub colors with a color picker.
Here is a mockup of what I'm thinking,
Any text of the form "rgba(#, #, #, #)" would get a mark to its left showing the color. When you click the color swatch the color picker pops up and you can change the color live.
One of the demos is a proof-of-concept yet functional color picker. It would be great if the value could be set using a component built on Apparatus itself, instead of having to plug in something new at the low level React code. This way end users could tweak the user interface without having to leave the environment, a la Smalltalk.
Though, I suppose, allowing Apparatus components to provide values for variables would require some kind of type system.
The same way you can scrub numbers, you should be able to scrub colors with a color picker.
Here is a mockup of what I'm thinking,
Any text of the form "rgba(#, #, #, #)" would get a mark to its left showing the color. When you click the color swatch the color picker pops up and you can change the color live.
The place in the code to do this is here,
https://github.com/cdglabs/apparatus/blob/master/src/View/ExpressionCode.coffee#L154
A nice looking color picker to use might be this one as it is already React-ready.
The text was updated successfully, but these errors were encountered: