-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpmscolors.py
More file actions
119 lines (109 loc) · 8.97 KB
/
pmscolors.py
File metadata and controls
119 lines (109 loc) · 8.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/usr/bin/env python
"""
A list of PMS colors and their associated moods. Taken from
http://img.gawkerassets.com/img/18hz1y1ypqji1jpg/original.jpg
"""
pmscolors_dic = {}
pmscolors_dic['Deep Red'] = ['1945C', '#A80C35', 'rich, elegant, refined, tasty, expensive, mature, sumptuous, cultivated, robust',
'']
pmscolors_dic['Brick Red'] = ['188C', '#7C2128', 'earthy, warm, strong, sturdy, established, country', '']
pmscolors_dic['Bright Red'] = ['186C', '#CE1126', 'exciting, energizing, sexy, passionate, hot, dynamic, stimulating, provocative,\
dramatic,powerful, courageous, magnetic, assertive, impulsive, adventurous, demanding, stirring, spontaneous, motivating',
'overly aggressive, violent, warlike, temperamental, antagonistic, danger']
pmscolors_dic['Bright Pink'] = ['205C', '#E54C7C', 'exciting, theatrical, playful, hot, attention-getting, high-energy, sensual, wild, \
tropical,festive, vibrant, stimulating, flirtatious', 'gaudy']
pmscolors_dic['Dusty Pink'] = ['693C', '#DBA8A5', 'soft, subtle, cozy, dusky, gentle, composed, nostalgic', '']
pmscolors_dic['Light Pink'] = ['1895C', '#FCBFC9', 'positive: romantic, affectionate, compassionate, soft, sweet tasting, sweet smelling,\
tender, delicate, innocent, fragile, youthful; negative: too sweet, too sentimental', '']
pmscolors_dic['Peach'] = ['162C', '#F9C6AA', 'nurturing, soft, fuzzy, tactile, delicious, fruity, sweet, tasting, sweet smelling, inviting,\
warm, physical comfort, intimate, modest, embracing', '']
pmscolors_dic['Coral'] = ['170C', '#F98972', 'life force, energizing, flexibility, desire', '']
pmscolors_dic['Tangerine'] = ['715C', '#FC9E49', 'vital, juicy, fruitful, energizing, tangy', '']
pmscolors_dic['Vibrant Orange'] = ['1586', '#F6892D', 'fun, whimsical, childlike, happy, glowing, sunset, hot, energizing, active, gregarious,\
friendly, good-natured, expansive, spontaneous, optimistic, communicative, jovial, sociable, self-assured, persuasive, animated',
'loud, raucous,frivolous']
pmscolors_dic['Ginger'] = ['180C', '#C0362C', 'spicy, flavorful, tangy, pungent, exotic', '']
pmscolors_dic['Terra Cotta'] = ['7522C', '#BD7565', 'earthy, warm, country, wholesome, welcoming, abundance', '']
pmscolors_dic['Tan'] = ['729C', '#C38E63', 'rugged, outdoor, rustic, woodsy', '']
pmscolors_dic['Chocolate Brown'] = ['477C', '#5E2F24', 'delicious, rich, robust, appetizing', '']
pmscolors_dic['Earth Brown'] = ['438C', '#513E3E', 'earthy, grounded, steady, solid, rooted, wholesome, sheltering, warm, durable, secure,\
reliable, natural, traditional, supportive', '']
pmscolors_dic['Metallic'] = ['871C', '#857040', 'bling, rich, glowing, divine, intuitive, luxurious, opulent, expensive, radiant, valuable,\
prestigious', 'gaudy']
pmscolors_dic['Amber'] = ['1385C', '#D67500', 'jewelry, multi-cultural, mellow, abundant, original, autumn', '']
pmscolors_dic['Golden Yellow'] = ['130C', '#F1AB00', 'nourishing, buttery, tasty, sun-baked, wheat, hospitable, comfort, comfort food', '']
pmscolors_dic['Bright Yellow'] = ['116C', '#FFCE00', 'illuminating, joyful, hot, lively, friendly, luminous, enlightening, energetic,\
sunshine, stimulating, innovative, radiating, awareness, surprise, caution', 'cowardice, betrayal, hazard']
pmscolors_dic['Light Yellow'] = ['127C', '#EFDF85', 'cheering, happy, soft,sunny, warming, sweet, easy, pleasing, babies','']
pmscolors_dic['Chartreuse'] = ['584C', '#CBD34C', 'artsy, bold, trendy, startling, sharp, pungent', 'gaudy, tacky, slimy, sickening, mold']
pmscolors_dic['Light Green'] = ['358C', '#A5DB92', 'calm, quiet, soothing, neutral, lightweight', '']
pmscolors_dic['Olive Green'] = ['5767C', '#8D9150', 'military, camouflage, safari, classic', 'drab']
pmscolors_dic['Lime'] = ['377C', '#679000', 'fresh, citrusy, youthful, acidic, tart, refreshing', '']
pmscolors_dic['Dark Green'] = ['3435C', '#004731', 'nature, trustworthy, refreshing, cool, restful, stately, forest, hushed, woodsy,\
traditional, reliable, money, prosperity', '']
pmscolors_dic['Foliage Green'] = ['349C', '#006233', 'natural, fertile, healthy, balance, life, growth, soothing, harmony, restful,\
restoration, reassurance, environmental awareness, new beginnings', '']
pmscolors_dic['Bright Green'] = ['347C', '#009543', 'fresh, grass, Irish, lively, spring, renewal, lush', '']
pmscolors_dic['Emerald'] = ['334C', '#009878', 'luxurious, jewel-like, up-scale', '']
pmscolors_dic['Aqua'] = ['565C', '#B9DCDA', 'water, refreshing, cleansing, young, babies, cool, dreamy, soft, lightweight', '']
pmscolors_dic['Turquoise'] = ['3258C', '#43C4B7', 'infinity, compassionate, protective, faithful, water, coolness, sky, gemstone, tropical,\
oceans', '']
pmscolors_dic['Teal'] = ['315C', '#006685', 'serene, cool, tasteful, sophisticated, confident', '']
pmscolors_dic['Sky Blue'] = ['7458C', '#77B6D0', 'calming, cool, heavenly, constant, faithful, true, dependable, restful, contentment,\
tranquil, reassuring, trusting, serene, expansive, open, infinity, transcendent, distance', '']
pmscolors_dic['Light Blue'] = ['283C', '#93BFEB', 'calm, quiet, patient, peaceful, cool, water, clean', '']
pmscolors_dic['Periwinkle'] = ['7452C', '#8094DD', 'genial, lively, sprightly, convivial, cordial', '']
pmscolors_dic['Bright Blue'] = ['285C', '#0077D4', 'electric, energy, brisk, vibrant, flags, stirring, impressive, aquatic, high spirits,\
exhilarating', '']
pmscolors_dic['Deep Blue'] = ['2747C', '#00237E', 'credible, authoritative, basic, conservative, classic, strong, reliable, traditional,\
uniforms, service, nautical, loyal, confident, professional, throught-provoking, introspective, aids concentration,\
clarify thoughts', 'aloof, distant, melancholy']
pmscolors_dic['Lavender'] = ['264C', '#BCA8E6', 'romantic, nostalgic, fanciful, lightweight, lightly scented', '']
pmscolors_dic['Mauve'] = ['5145C', '#A17E9A', 'wistful, sentimental, thoughtful', '']
pmscolors_dic['Amethyst'] = ['2573C', '#B279C8', 'curative, protective, peace of mind', '']
pmscolors_dic['Blue Purples'] = ['267C', '#4F1F91', 'contemplative, meditative, spiritual, soul-searching, intuitive, mysterious, \
enchanting', '']
pmscolors_dic['Red Purple'] = ['2602C', '#7D0996', 'sensual, thrilling, intensely exciting, dramatic, creative, witty, expressive', '']
pmscolors_dic['Deep Purple'] = ['2627C', '#43125F', 'visionary, rich, royal, prestigious, subduing, distant introspective', 'aloof']
pmscolors_dic['Neutral Gray'] = ['423C', '#939495', 'classic, sober, corporate, practical, timeless, qualify, quiet, neutrality, logical,\
unobtrusive, deliberate, reserved, fundamental, basic, modest, efficient, dutiful, methodical', '']
pmscolors_dic['Charcoal Gray'] = ['425C', '#56595C', 'steadfast, responsible, staunch, accountable, conscienctious, resolute, restrained,\
conservative, professional, classic, sophisticated, solid, enduring, mature, business-like', 'dull, conformist, detached']
pmscolors_dic['Taupe'] = ['7536C', '#b9b098', 'classic, neutral, practical, timeless, quality, basic, authentic, organic, versatile, \
inconspicuous, understated, discreet, compromising, modest', 'bland, tasteless']
pmscolors_dic['Ivory'] = ['7401C', '#FFF0BE', 'classic, neutral, soft, warm, comforting, good taste, creamy, smooth, subtle, natural, bridal',
'']
pmscolors_dic['Silver Metallic'] = ['877C', '#85888B', 'sleek, classy, stylish, modern, cool', '']
pmscolors_dic['Black'] = ['','#000000', 'powerful, empowering, elegant, sophisticated, mysterious, heavy, bold, basic, classic, strong,\
expensive, invulnerable, magical, nighttime, sober, prestigious, stylish, modern', 'depression, death, mourning, underworld,\
evil, oppression, suppression, menacing']
pmscolors_dic['White'] = ['','#FFFFFF', 'pure, clean, pristine, virginal, spotless, innocent, silent, lightweight, airy, Bright, bridal,\
ethereal, clarity, simplicity, arctic, efficient', 'sterile, cold, clinical']
class pmscolors(object):
def __init__(self):
self.pmscolors_dic = pmscolors_dic
self.colornames = pmscolors_dic.keys()
for k in self.colornames:
kstr = k.replace(' ','_')
setattr(self,kstr,pmscolors_dic[k][1]) # set attributes to HEX codes
def __call__(self, color):
return self.get_hex(color)
def print_colors(self):
print self.colornames
def get_PMS(self, color):
if color in self.colornames:
return self.pmscolors_dic[color][0]
else:
print "Color name %s not recognized." % color
def get_hex(self, color):
if color in self.colornames:
return self.pmscolors_dic[color][1]
else:
print "Color name %s not recognized." % color
def print_color(self,color):
if color in self.colornames:
print color
for i in range(4):
print self.pmscolors_dic[color][i]
else:
print "Color name %s not recognized." % color