tylergaw / colorme

Visualize CSS Color Functions?
https://colorme.io
MIT License
316 stars 14 forks source link

Add support for operators for adjuster values #11

Closed tylergaw closed 5 years ago

tylergaw commented 7 years ago

Most adjusters allow for + and - operators instead of only direct input. Some allow for * operator. https://drafts.csswg.org/css-color/#modifying-colors

Currently, each adjuster value starts at that value of the base color. The adjuster range slider or number input increases or decreases the value from that starting point.

It would be cool to allow the user to choose to include an operator. For +/- we could allow for the option to "turn on operator" then changing the value in either direction would pick the correct operator.

Could also just allow the user to pick one of the three operators based on what the adjuster supports.

Regardless of UI, this would be a welcome addition and go further to making this an educational tool for the new Color features.

tylergaw commented 5 years ago

Closing this because it's not clear this will ever be a thing. The previous color function is deprecated and new proposals are in the works