Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how our colors are generated with RGB interpolation (technical) #2872

Open
Thunear opened this issue Dec 9, 2024 · 0 comments
Open
Assignees

Comments

@Thunear
Copy link
Collaborator

Thunear commented Dec 9, 2024

I get a lot of questions about how our colors are generated on a more technical level. Saying RGB interpolation is not enough I found. People want to understand how we get both nice looking colors and colors that fit within contrast ranges.

I therefore want to visualize and explain how our colors are generated by explaining the binary search model, and how it recursively finds the optimal color for a color in a certain color space.

For internal use when people ask.

Note to self

  • Declare LOW and HIGH
  • Find midpoint
  • check direction to interpolate
  • Use binary search recursively to close the gap
@Thunear Thunear converted this from a draft issue Dec 9, 2024
@Thunear Thunear moved this from 🏗 In progress to 📄 Todo in Team Design System Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📄 Todo
Development

No branches or pull requests

1 participant