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

Add ability to add gradient colors for Circle gauge. #2

Closed
skywinder opened this issue Jun 19, 2015 · 11 comments
Closed

Add ability to add gradient colors for Circle gauge. #2

skywinder opened this issue Jun 19, 2015 · 11 comments

Comments

@skywinder
Copy link
Owner

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 and endColor).
I want to find solution, that can fix this and #12 issue at once.
screen shot 2015-08-03 at 09 29 08

@DrAma999
Copy link

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

@skywinder
Copy link
Owner Author

@DrAma999 thanks for the link. I will take a look on this solution

@NickPappas
Copy link

Any solution yet? Subscribing to this.

@skywinder
Copy link
Owner Author

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.

@DrAma999
Copy link

DrAma999 commented Nov 6, 2015

Hi, This guy made this class to draw gradients, maybe you can get in touch with him https://github.com/maxkonovalov/MKGradientView

@skywinder
Copy link
Owner Author

@DrAma999 Thanks! 3rd gradient looks like what I want to get.
Actually I already implement it in gradientCircle branch. You can see it on screenshot above. I just need to implement infinite option for this circles. But thanks for the link! 👍

@skywinder
Copy link
Owner Author

@sinanulkuatam let's continue #32 (comment) here:
As I said there is branch gradientCircle. I'm not work in this direction last time in case of lack of time. But I you know how to implement it right - I would be glad to review PR 😉

@sinanku
Copy link

sinanku commented May 18, 2016

Check it out :) #35

gradient

@saiidabs
Copy link

@sinanku how did u get the circular view to work like that?

@sinanku
Copy link

sinanku commented Aug 22, 2016

@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.

@skywinder
Copy link
Owner Author

already implemented in latest versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants