Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Priva28/SwiftUIColourWheel
A colour wheel made all in SwiftUI
https://github.com/Priva28/SwiftUIColourWheel
color-picker color-wheel swift swiftui
Last synced: about 1 month ago
JSON representation
A colour wheel made all in SwiftUI
- Host: GitHub
- URL: https://github.com/Priva28/SwiftUIColourWheel
- Owner: Priva28
- Created: 2020-06-09T09:29:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T07:19:00.000Z (over 4 years ago)
- Last Synced: 2024-08-03T18:12:05.162Z (5 months ago)
- Topics: color-picker, color-wheel, swift, swiftui
- Language: Swift
- Size: 36.5 MB
- Stars: 81
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-swiftui-libraries - SwiftUIColourWheel - A colour wheel made all in SwiftUI (Color / Content)
README
# SwiftUI Colour Wheel
A colour wheel made all in SwiftUI.
There are 2 different colour wheels to choose from.
- The first main one uses `CIHueSaturationValueGradient` `CIFilter` to draw itself, then uses `RadialGradient` and `.blur` to smooth it out. Named `ColourWheel` in code.
- The second one uses SwiftUI's `AngularGradient` with all 360 hues to draw the gradient, then a `RadialGradient` and `.blur` to smooth it out. Named `NewColourWheel` in code.If you would like to use the slider to change brightness/value, use `ColourWheel`, as `NewColourWheel` does not support setting value at this point in time.
They both interact the same and output in [Red, Green, Blue] or [Hue, Saturation].
![previewjpg](https://raw.githubusercontent.com/Priva28/SwiftUIColourWheel/master/preview.jpg)
![preview](https://raw.githubusercontent.com/Priva28/SwiftUIColourWheel/master/preview.gif)