Tag: color

Change UIColors to RGB and HSB colors

One dilemma you’ll find when working with colors is switching between color systems. There’s two you’ll most often be using: the Red-Green-Blue or RGB and Hue-Saturation-Brightness or HSB. Download the Exercise file and run. It will give you the HSB value, but what if…

Tip: Hex Colors

There’s lot of ways to represent colors. Crayons have names like Sea Green and Peach. I used these two colors since I’m color blind and they once got me in serious trouble when I was young. I and many with color blindness can’t tell them…

Swift Swift: Making Colorful Table views

Sometimes you’d like to make a colorful table.  Here’s a technique to do that when configuring a table view cell. It uses the HSB UIColor methods, so if you are not familiar with them, check out my post on HSB color here. Make a…

Swift Swift: Using UIColor in Swift Part 2: Making a Color Palette with HSB

[Updated to Swift 2.0/iOS9 SJL 9/18/15] In our last post we discussed the RGB color space which uses red green and blue to create color. It is a very popular color space to communicate and specify color since it uses a very easy numbering…

Swift Swift: Using Color and UIColor in Swift Part 1: RGB

[Updated to Swift 2.0/iOS9.0 9/18/15 SJL – errors corrected 11/20/15] I’m color blind, and that makes me a very good person to teach you about color and UIColor.  I’ve painted for many years and my color blindness does not detract but actually helps me…

From Apple to Raspberry Pi: Configuring Buttons for GUI.

In our last installment, we learned how to add buttons and labels to a Python program. Now we are going to make them look a little nicer than the generic buttons we haven now using the configure method of Tkinter. Make a beginning framework…