Package psychopy :: Module colors
[frames] | no frames]

Module colors

source code

Functions
 
hex2rgb255(hexColor)
Convert a hex color string (e.g.
source code
Variables
  colors = {'aliceblue': (0.882352941176, 0.945098039216, 1), 'a...
  colorsHex = {'aliceblue': '#F0F8FF', 'antiquewhite': '#FAEBD7'...
  colors255 = {'aliceblue': (240, 248, 255), 'antiquewhite': (25...
Function Details

hex2rgb255(hexColor)

source code 
Convert a hex color string (e.g. "#05ff66") into an rgb triplet ranging from 0:255

Variables Details

colors

Value:
{'aliceblue': (0.882352941176, 0.945098039216, 1),
 'antiquewhite': (0.960784313725, 0.843137254902, 0.686274509804),
 'aqua': (-1, 1, 1),
 'aquamarine': (-0.00392156862745, 1, 0.662745098039),
 'azure': (0.882352941176, 1, 1),
 'beige': (0.921568627451, 0.921568627451, 0.725490196078),
 'bisque': (1, 0.788235294118, 0.537254901961),
 'black': (-1, -1, -1),
...

colorsHex

Value:
{'aliceblue': '#F0F8FF',
 'antiquewhite': '#FAEBD7',
 'aqua': '#00FFFF',
 'aquamarine': '#7FFFD4',
 'azure': '#F0FFFF',
 'beige': '#F5F5DC',
 'bisque': '#FFE4C4',
 'black': '#000000',
...

colors255

Value:
{'aliceblue': (240, 248, 255),
 'antiquewhite': (250, 235, 215),
 'aqua': (0, 255, 255),
 'aquamarine': (127, 255, 212),
 'azure': (240, 255, 255),
 'beige': (245, 245, 220),
 'bisque': (255, 228, 196),
 'black': (0, 0, 0),
...