-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Add ability to add gradient colors for Circle gauge. #2
Comments
Hello Skywinder, I love your project. I also went into the same problem, but for time reason I used a masked image. It doesn't seem possible to create a circular gradient using CG, but you can fake it(somehow) thinking in small linear gradients, the idea has found proof of its possibility in that SO answer http://stackoverflow.com/questions/24751607/fill-circular-ring-with-gradient-color-according-to-percentage |
@DrAma999 thanks for the link. I will take a look on this solution |
Any solution yet? Subscribing to this. |
Hi, @NickPappas. As you can see on screenshot - it does not looks well without overlaping. So, as soon as #12 closed - it will be easy not implement this feature also. |
Hi, This guy made this class to draw gradients, maybe you can get in touch with him https://github.com/maxkonovalov/MKGradientView |
@DrAma999 Thanks! 3rd gradient looks like what I want to get. |
@sinanulkuatam let's continue #32 (comment) here: |
Check it out :) #35 |
@sinanku how did u get the circular view to work like that? |
@saiidabs originally I made @IBInspectables to change gradient properties, after I just made it so that you defined a start color and end color that was already a part of the library. You can download my fork and run the example project, it should help get you on the right track. |
already implemented in latest versions |
It's subtask of #12.
I start working on it in
gradientCircle
branch, but implementation is not quite easy and still have issues.Also - it looks not very well without overlapping (the border of
startColor
andendColor
).I want to find solution, that can fix this and #12 issue at once.
The text was updated successfully, but these errors were encountered: