leonardo
leonardo copied to clipboard
API improvements
Description
Refine the API props and options for Leonardo to be more intuitive and consistent.
Considering there are other tools out there (including the d3 and chroma.js libraries) that have similar options, conforming to similar prop names or casing styles would make this tool more intuitive for consumers who are familiar with those tools.
For example:
- Lower case colorspace names: 'lch' instead of 'LCH'
-
colorspaceprop should either be camel case, or use a more literal term likeinterpolate/mode -
outputmay be better surfaced asformat(eg, d3formatRgb)
Overall evaluation and comparison of prop names and values should be done beyond those examples.
Why do you need this feature?
Solidify the API for Leonardo by relating to existing language, props, and values expressed in other similar tools or industry standards.