Giter Club home page Giter Club logo

bccolor's Introduction

BCColor

#BCColor 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

    BCColor

    BCColor

    BCColor

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()])

##Misc

Author: Boyce Chang

If you like BCColor and use it, could you please:

  • star this repo
  • send me some feedback. Thanks!

License

This code is distributed under the terms and conditions of the MIT license.

Contribution guidelines

If you are fixing a bug you discovered, please add also a unit test so I know how exactly to reproduce the bug before merging.

bccolor's People

Contributors

daveamoore avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.