Get Updates By E-mail 

Article Written By:
Johann Dowa

BCColor – Swift Based Color Helper Library For Gradients, Getting Image Colors And Image And More


BCColor is an open source Swift based helper library from Boyce Chang providing an assortment of color helpers with a clean syntax.

BCColor includes helpers for:

  • Getting colors from an image
  • Setting colors to monchrome
  • Getting lighter/darker colors
  • Creating gradients
  • Colors from hex values

This snippet from the readme shows the basic usage of BCColor:

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

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

// Hex Color
UIColor.bc_colorWithHex("#5d13e2", alpha: 1)

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

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


You can find BCColor on Github here.

A nice Swift based color helper library.


Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.