-
Notifications
You must be signed in to change notification settings - Fork 81
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
Can we apply gradient color to Slice and apply gradient color for Slice's Text? is it possible with some customization? #16
Comments
@sh-khashimov can we apply gradient-like marked (radial gradient) in the attached image for the slice and applying for some slice only not all slice in the wheel? |
@sh-khashimov do you have any suggestions or thoughts about radial gradient for slice then it will be helpful. |
change the code above that I gave you to: context.drawLinearGradient(
gradient,
start: CGPoint(x: path.boundingBox.minX, y: path.boundingBox.midY),
end: CGPoint(x: path.boundingBox.maxX, y: path.boundingBox.midY),
options: []
)
//MARK: - Gradient Color END |
@sh-khashimov thanks for the reply but it gives a gradient but from bottom to top like in between colors straight line I want radial like orange marked in the attached image is it possible? |
instead of context.drawRadialGradient(gradient,
startCenter: center,
startRadius: 0,
endCenter: center,
endRadius: radius,
options: []) |
@sh-khashimov got it, thanks for the reply and library. do you have any idea about the slice's text gradient or any file modification? |
Unfortunately, no. Since gradient text is just an image inside the text, which adds complexity for already not an easy text processing inside the |
@sh-khashimov thanks for the replay and all your help. Hope, in future version, we have gradient color option for text also |
No description provided.
The text was updated successfully, but these errors were encountered: