8

I would like to draw a circle filled with blended color with gradient. However, the existing android.graphics.Shader subclasses cannot meet my need. In short, I would like to control the color of each pixel in the circle myself. Is it possible to implement a custom Shadar object by extending android.graphics.Shader?

1 Answer 1

3

I am not sure about subclassing android.graphics.Shader

But if you are using OpenGl ES 2.0 you can write your own Shader using GLSL which gives you very high flexibilty.

Maybe have a look at this question.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.