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 rgb ios macos Get rgb from Color Do brighter Do darker SwiftUI color
⭐️ 5
🕓 1 year 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 channels 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: 5
Last commit: 28 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

SwiftUI Color extender
1 year ago

SwiftUI Color extender

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