3 ms·
> how do i mix two colors (hexadecimal rgb string) in js > ANSWER > To mix two colors in JavaScript, you can use the color-mix property. This property takes
by tobr 4y ago
> how do i mix two colors (hexadecimal rgb string) in js
> ANSWER
> To mix two colors in JavaScript, you can use the color-mix property. This property takes three parameters: the colorspace, the color to be mixed, and the percentage of that color to mix. For example, to mix the colors #FFFFFF and #8FBC8, you would use the following code:
> let newColor = document.createElement;
> // Outputs: #8FBC8
This is all just wrong from beginning to end. It seems to be confusing JS and CSS, too.
- nigamanth 4y agoI mean with all the data on the internet it's hard to differentiate between what's right and wrong. Perhaps your question can also be refined to: "How do I mix two colors in vanilla JavaScript?" This doesn't confuse rgb string and it still asks the same question.
- tobr 4y agoOk, but if I use this to ask about something I genuinely need help with, how am I supposed to know that? And I don’t really think the problem is that it can’t differentiate between sources that are right and wrong. The sources are perfectly fine. It’s the summary that is bananas.