Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content

feat(colors): evenly spaced color generation + new golden ratio calculation

wyzula_j requested to merge feat/color-evenly-spaced-colors into main

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.

Merge request reports

Loading