gkye / Complimentarygradientview
Licence: mit
Create complementary gradients generated from dominant and prominent colors in supplied image. Inspired by Grade.js
Stars: ✭ 691
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Complimentarygradientview
gradient-rs
A command line tool for playing with color gradients
Stars: ✭ 93 (-86.54%)
Mutual labels: color, gradient
Gradientprogressbar
📊 A customizable gradient progress bar (UIProgressView).
Stars: ✭ 311 (-54.99%)
Mutual labels: cocoapods, gradient
elm-color-extra
🎨 Additional color handling for Elm
Stars: ✭ 28 (-95.95%)
Mutual labels: color, gradient
colr
Easy terminal colors, with chainable methods.
Stars: ✭ 32 (-95.37%)
Mutual labels: color, gradient
Chromatic Sketch
Sketch plugin for creating good-looking and perceptually uniform gradients and color scales.
Stars: ✭ 445 (-35.6%)
Mutual labels: color, gradient
Height-Based-Gradient-Color-Shaders-for-Unity
Height Based 2 color gradient shaders for Unity
Stars: ✭ 18 (-97.4%)
Mutual labels: color, gradient
Skeletonui
☠️ Elegant skeleton loading animation in SwiftUI and Combine
Stars: ✭ 275 (-60.2%)
Mutual labels: cocoapods, gradient
Dtgradientbutton
Easy way to set gradient background to your buttons.
Stars: ✭ 76 (-89%)
Mutual labels: cocoapods, gradient
Chromacolorpicker
🎨 An intuitive iOS color picker built in Swift.
Stars: ✭ 434 (-37.19%)
Mutual labels: cocoapods, color
Colorizeswift
Terminal string styling for Swift.
Stars: ✭ 253 (-63.39%)
Mutual labels: cocoapods, color
Rhplaceholder
Show pleasant loading view for your users 😍
Stars: ✭ 238 (-65.56%)
Mutual labels: cocoapods, gradient
Extract-Color-Palette-Api
Create gradient drawable by extracting prominent colors from image⚫⚪
Stars: ✭ 16 (-97.68%)
Mutual labels: color, gradient
Swiftcolorgen
A tool that generate code for Swift projects, designed to improve the maintainability of UIColors
Stars: ✭ 152 (-78%)
Mutual labels: cocoapods, color
Nightnight
Elegant way to integrate night mode to swift projects
Stars: ✭ 771 (+11.58%)
Mutual labels: cocoapods, color
Grview
UIView and other UIKit elements with a gradient and other attributes for IOS
Stars: ✭ 39 (-94.36%)
Mutual labels: cocoapods, gradient
Hue
🎨 Hue is the all-in-one coloring utility that you'll ever need.
Stars: ✭ 3,306 (+378.44%)
Mutual labels: color, gradient
Gradient String
🌈 Beautiful color gradients in terminal output
Stars: ✭ 476 (-31.11%)
Mutual labels: color, gradient
ComplimentaryGradientView
Create complementary gradients generated from dominant and prominent colors in supplied image. Inspired by Grade.js ❤️
.all gradientStartPoint: left
|
colors(start: .primary, end: .background) gradientStartPoint: top
|
---|---|
colors(start: .detail, end: .background) gradientStartPoint: top
|
colors(start: .secondary, end: .background) gradientStartPoint: bottom
|
---|---|
Demo
Sorry for the poor quality gif
Usage
Code
let gradientView = ComplimentaryGradientView(frame: CGRect(x: 0, y: 0, width: 300, height: 300))
//Colors for gradient are derived from the provided image
gradientView.image = UIImage(named: "myImg")
gradientView.gradientTpye = .colors(start: .primary, end: .secondary)
// Default = `.left`
gradientView.gradientStartPoint = .left
// Default = `.high`
gradientView.quality = .high
Storyboard
Guide.
MigrationVersion 3.0 introduces GradientVariant
and reduces GradientType
to two simple options:
// Create a gradient using all colors found in image
case all
// Create gradient using variants. ie. .colors(start: .primary, end: .detail)
case colors(start: GradientVariant, end: GradientVariant)
Installation
CocoaPods
ComplimentaryGradientView is available through CocoaPods. To install it, simply add the following line to your Podfile:
Swift 4.2
pod 'ComplimentaryGradientView', '~> 3.0'
Swift3.
pod 'ComplimentaryGradientView', '~> 0.1.7'
Swift 2.2
pod 'ComplimentaryGradientView', '~> 0.1.0'
Manually
Download and drop ComplimentaryGradientView.xcodeproj
into your project
OR
Drag Source
folder into your project.
Dependencies
License
ComplimentaryGradientView is available under the MIT license. See the LICENSE file for more info.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].