lifepillar / vim-colortemplate

The Toolkit for Vim Color Scheme Designers!
929 stars 29 forks source link

(v3) Suggestion - Build-time color calculations #86

Open briancarbone opened 2 months ago

briancarbone commented 2 months ago

This would be a method for calculating relative colors at build time, e.g. a color with an "alpha layer" simulated atop a solid base color. I've seen color palettes (like ayu) generated using tools like https://gka.github.io/chroma.js/ (with lighten, darken, etc.). It would be nice to expose a high-level, build-time interface for manipulating colors. I'm not sure whether this would be used within the Color: directive or in some new way... perhaps RelativeColor:, but that may be redundant if some function-like interface is required, e.g. mix(#ABCDEFFF, #CECECEAA) (this seems like a poor example... there would need to be a way to reference other colors at a minimum).

Referencing libcolor here as well.

lifepillar commented 2 months ago

Thanks for opening this issue. Original discussion, for reference: https://github.com/lifepillar/vim-colortemplate/issues/85.