feat(colors): evenly spaced color generation + new golden ratio calculation
Description
Introduces a new method for calculating evenly spaced colors from a colormap. Adjusts the golden angle color calculation and fixes a bug where the golden angle method returned fewer colors than requested for higher color counts.
Type of Change
- New: Adds a method to calculate evenly spaced colors.
- Update: Modifies golden angle color calculation.
- Fix: Resolves a bug with the golden angle method that caused fewer colors than expected to be returned.
- Enhancement: Extends tests to cover new and updated methods.
Potential Side Effects
None.
Screenshots / GIFs (if applicable)
Example showcase in a simple widget (not part of this MR; can be added later in examples).
Screen_Recording_2024-10-25_at_12.23.41
Additional comment
Needed for #375 (closed) for color scaling.