kaandedeoglu / KDCircularProgress

A circular progress view with gradients written in Swift
MIT License
1.21k stars 217 forks source link

progress color manipulation #81

Open returnchung opened 7 years ago

returnchung commented 7 years ago

Excuse me, how could I control the gradient colors range between startAngle to anyAngle(eg. 135 degrees) which could be various values because, by default, the color gradient seems to start from 0 to 180 degrees and then reverse gradient colors which I set.

ghost commented 7 years ago

I have the same problem, could you please answer on this issue. Many thanks!

gaecer commented 7 years ago

Same problem, but there is no answer after one month 👎

kaandedeoglu commented 7 years ago

@return1225 Sorry I must have skipped this issue. Could you please explain better what you're trying to do? You want the gradients to apply only to a specified range?

@gaecer This is an open source project, I am in no way responsible of developing features to cover all your use cases, comments like this don't help anyone. PR's are always welcome.

returnchung commented 7 years ago

Hi @kaandedeoglu , Thanks for replying. Here is the thing. I'm trying to draw a dynamic progress with gradient color depending on variable values but the gradient color always was rendered from 0 to 180 degree and repeat conversely. Which means the gradient color range can't be controlled by any specific value of endpoint. For example, gradient color rendered with (red,green,blue) and specific progress range of angle sets from 0 to 240 degrees. The result would become a gradient color of (red,green,blue,green) rather than (red,green,blue) which seems to reflect at 180 degrees.

iamsanketray123 commented 5 years ago

Any fix for this yet?

nadimalam commented 4 years ago

hi, is there any way to get this to work yet as i also need the same thing.