Chromatic Scales
Pre-release
Pre-release
What's Changed
- Two very impactful changes - the first being that a lot of duplicate code (and types!) were collapsed - Linear, Log, Power, and Radial scales are now all a single type: ContinuousScale, with the same functionality as before. With collapsing it, I also removed the AnyContinuousScale type-erased wrapper, as it was no longer needed with the refactored type.
- Color scales are now included - which include mechanisms to interpolate between colors you provide through a perceptually uniform color space (LCH) as well as replicating a number of the continuous color scales from D3-scale-chromatic. The PR also added a new target to the library that contains SwiftUI views specific to visualizing the color scales and ranges, primarily for a visual review and exploration of the content and values through the lens of various color spaces.
- The "nice" algorithm was fixed up and collapsed as well, resolving an issue where niceValue wasn't correctly returning "lower" nice values by @heckj in #28
Full Changelog: 0.6.0...0.7.0