caolsen / circularslider Goto Github PK
View Code? Open in Web Editor NEWCircular slider and partial arc sliders for iOS in Swift
License: MIT License
Circular slider and partial arc sliders for iOS in Swift
License: MIT License
Hi,
first of all thank you for the great Slider. I am brand new to programming, never done anything like it before and still have lots of staff to learn :o)
I would appreciate if you could tell me, how I could change the start Angle of the filled track in the CircleSlider and maybe how I could use the gradient not just for the background circle but for the other one as well.
I tried working it out, but unfortunately so far, no Luck.
Thanks a lot.
Cosima
Hi,
first of all thanks for your library, I like it!
I'm finding some problem in the gradient mode. I've set only half a circle, but the gradient is not going from blue to red correctly, the first color starts after some angle (see in the screenshot above).
This is my code:
circularSlider.maximumAngle = 220.0
circularSlider.minimumValue = 0
circularSlider.maximumValue = 16
circularSlider.transform = circularSlider.getRotationalTransform()
circularSlider.lineWidth = 28
circularSlider.unfilledGradientColors = [UIColor.blue, UIColor.red]
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.