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

question : support gradient color ? #59

Closed
shakeri-mreza opened this issue Apr 10, 2018 · 2 comments
Closed

question : support gradient color ? #59

shakeri-mreza opened this issue Apr 10, 2018 · 2 comments

Comments

@shakeri-mreza
Copy link

No description provided.

@danh32
Copy link
Contributor

danh32 commented Apr 21, 2018

Hi @shakeri-mreza - I'm working on a way to allow generic drawing effects and going to be tracking that work here: #63

Once that's in place, I can add gradient support fairly easily.

@danh32
Copy link
Contributor

danh32 commented Apr 21, 2018

I should have mentioned, in the meantime, you can achieve gradients like this:

    final SparkView sparkView = findViewById(R.id.sparkview);
    sparkView.setFillType(SparkView.FillType.DOWN);
    final Paint fillPaint = sparkView.getSparkFillPaint();
    fillPaint.setShader(new LinearGradient(...));

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

2 participants