BCColor
  • March 11, 2024

A lightweight but powerful color kit (Swift)

Features


  • Pick Colors From Image

  • Generate Monochrome Image

  • Support Hex Color Style

  • Lighten / Darken Any Color

  • Generate Two Different Styles of Gradient Color

Installation


Requirements

  • ARC only; iOS 8.0+

Get it as:

1) source files

  1. Download the BCColor repository as a zip file or clone it
  2. Copy the BCColor files into your Xcode project
2) via Cocoa pods

BCColor is available on CocoaPods. Just add the following to your project Podfile:

pod ‘BCColor’

If you want to read more about CocoaPods, have a look at this short tutorial.

Basic Usage


 

// Pick Colors From Image
let colors = image?.getColors()

// Generate Momochrome Image
let monochromeImage = image?.monochrome()

// Hex Color
UIColor.colorWithHex(“#5d13e2”, alpha: 1)

// Gradient Color
UIColor.gradientColor(CGPointMake(0.0, 0.0), endPoint: CGPointMake(1.0, 1.0), frame:frame, colors: [UIColor.redColor(), UIColor.blueColor()])

UIColor.radialGradientColor(frame, colors: [UIColor.blueColor(), UIColor.greenColor()])

GitHub


View Github

#color #colorpicker #colorpickerview #colors #material-colors
YOU MIGHT ALSO LIKE...
CameraBackground

Features Both front and back camera supported. Flash modes: auto, on, off. Countdown timer. Tap to focus. Pinch to zoom. Usage  

DKCamera

Description A light weight & simple & easy camera for iOS by Swift. It uses CoreMotion framework to detect device orientation, so ...

HorizonSDK-iOS

Horizon SDK is a state of the art real-time video recording / photo shooting iOS library. Some of the features ...

LLSimpleCamera

LLSimpleCamera: A simple customizable camera - video recorder control LLSimpleCamera is a library for creating a customized camera - video ...

RSBarcodes_Swift

RSBarcodes allows you to read 1D and 2D barcodes using the metadata scanning capabilities introduced with iOS 7 and generate ...