What is the closest equivalent of .NET’s ColorBlend /InterpolationColors in Java?
Update:
See my own solution below. Also, I needed this for my Android App.
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.
I think I got the answer. I was actually looking this for Android for drawing a linear gradient line with multiple colors at various stops. Turns out Android’s LinearGradient‘s constructor takes parameters for both colors and positions. To imitate .net’s ColorBlend I’ll just create a ColorBlend class with setter/getters for positions and colors.