Swiftpack.co - The-Igor/d3-color as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by The-Igor.
The-Igor/d3-color v2.0.0
Useful extensions and functions used with SwiftUI Color
⭐️ 0
🕓 4 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/The-Igor/d3-color.git", from: "v2.0.0")

SwiftUI Color extender

Useful extensions and functions used with SwiftUI Color

Computed properties

  • rgba - returns values RGB and alfa chanels for Color instance

Functions

  • doBrighter (k: Double?) - increase intensity of the color. k - is level of the intensity Default value 0.05

  • doDarker(k: Double?) - decrease intensity of the color. k - is level of the intensity Default value 0.05

Used in

Color extender

GitHub

link
Stars: 0
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

SwiftUI Color extender
3 weeks ago

SwiftUI Color extender

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics