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

How to mix more than 2 colors using weight? #231

Closed
mazznoer opened this issue Oct 19, 2019 · 0 comments
Closed

How to mix more than 2 colors using weight? #231

mazznoer opened this issue Oct 19, 2019 · 0 comments

Comments

@mazznoer
Copy link

let colors = [
  {
    color: 'black',
    weight: 89,
  },
  {
    color: 'white',
    weight: 121,
  },
  {
    color: 'cyan',
    weight: 9,
  },
  {
    color: 'pink',
    weight: 75,
  },
  {
    color: 'red',
    weight: 13,
  },
];

How to get the average of all the colors using weight?

@gka gka closed this as completed in 8c200f0 Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant