rgba(255, 0, 0, 1); // red
rgba(0, 255, 0, 1); // just turned red green
How would you turn rgba(154, 155, 235); (a light purply blue color) into the same color only orange?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your question is quite confusing (also fyi, you’re also misusing
rgbain your last example, but you used it properly elsewhere so that was probably just an oversight) but I’m assuming that you want to maintain the lightness and saturation of the colour and modify the hue. To do this usehslinsteadis equivalant to
So by using
hslyou can now change the hueYou can use
hslanywhere you’d use a normal hex color orrgbacolor.See http://jsfiddle.net/a7pGB/ for an example