[cairo-commit] rcairo/src/lib/cairo colors.rb,1.1,1.2
Kouhei Sutou
commit at pdx.freedesktop.org
Sun Apr 15 22:55:25 PDT 2007
Committed by: kou
Update of /cvs/cairo/rcairo/src/lib/cairo
In directory kemper:/tmp/cvs-serv5986/src/lib/cairo
Modified Files:
colors.rb
Log Message:
* misc/update-colors.rb: supported X11 color names.
* src/lib/cairo/colors.rb: updated.
Index: colors.rb
===================================================================
RCS file: /cvs/cairo/rcairo/src/lib/cairo/colors.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- colors.rb 16 Apr 2007 04:52:44 -0000 1.1
+++ colors.rb 16 Apr 2007 05:55:16 -0000 1.2
@@ -370,5 +370,287 @@
YELLOW = RGB.new(1.0, 1.0, 0.0)
# Zinnwaldite: #EBC2AF
ZINNWALDITE = RGB.new(0.92156862745098, 0.76078431372549, 0.686274509803922)
+ module X11
+ # Gray: #BEBEBE
+ GRAY = RGB.new(0.745098039215686, 0.745098039215686, 0.745098039215686)
+ # Green: #00FF00
+ GREEN = RGB.new(0.0, 1.0, 0.0)
+ # Maroon: #B03060
+ MAROON = RGB.new(0.690196078431373, 0.188235294117647, 0.376470588235294)
+ # Purple: #A020F0
+ PURPLE = RGB.new(0.627450980392157, 0.125490196078431, 0.941176470588235)
+ # Alice Blue: #F0F8FF
+ ALICE_BLUE = RGB.new(0.941176470588235, 0.972549019607843, 1.0)
+ # Antique White: #FAEBD7
+ ANTIQUE_WHITE = RGB.new(0.980392156862745, 0.92156862745098, 0.843137254901961)
+ # Aqua: #00FFFF
+ AQUA = RGB.new(0.0, 1.0, 1.0)
+ # Aquamarine: #7FFFD4
+ AQUAMARINE = RGB.new(0.498039215686275, 1.0, 0.831372549019608)
+ # Azure: #F0FFFF
+ AZURE = RGB.new(0.941176470588235, 1.0, 1.0)
+ # Beige: #F5F5DC
+ BEIGE = RGB.new(0.96078431372549, 0.96078431372549, 0.862745098039216)
+ # Bisque: #FFE4C4
+ BISQUE = RGB.new(1.0, 0.894117647058824, 0.768627450980392)
+ # Black: #000000
+ BLACK = RGB.new(0.0, 0.0, 0.0)
+ # Blanched Almond: #FFEBCD
+ BLANCHED_ALMOND = RGB.new(1.0, 0.92156862745098, 0.803921568627451)
+ # Blue: #0000FF
+ BLUE = RGB.new(0.0, 0.0, 1.0)
+ # Blue Violet: #8A2BE2
+ BLUE_VIOLET = RGB.new(0.541176470588235, 0.168627450980392, 0.886274509803922)
+ # Brown: #A52A2A
+ BROWN = RGB.new(0.647058823529412, 0.164705882352941, 0.164705882352941)
+ # Burly Wood: #DEB887
+ BURLY_WOOD = RGB.new(0.870588235294118, 0.72156862745098, 0.529411764705882)
+ # Cadet Blue: #5F9EA0
+ CADET_BLUE = RGB.new(0.372549019607843, 0.619607843137255, 0.627450980392157)
+ # Chartreuse: #7FFF00
+ CHARTREUSE = RGB.new(0.498039215686275, 1.0, 0.0)
+ # Chocolate: #D2691E
+ CHOCOLATE = RGB.new(0.823529411764706, 0.411764705882353, 0.117647058823529)
+ # Coral: #FF7F50
+ CORAL = RGB.new(1.0, 0.498039215686275, 0.313725490196078)
+ # Cornflower Blue: #6495ED
+ CORNFLOWER_BLUE = RGB.new(0.392156862745098, 0.584313725490196, 0.929411764705882)
+ # Cornsilk: #FFF8DC
+ CORNSILK = RGB.new(1.0, 0.972549019607843, 0.862745098039216)
+ # Crimson: #DC143C
+ CRIMSON = RGB.new(0.862745098039216, 0.0784313725490196, 0.235294117647059)
+ # Cyan: #00FFFF
+ CYAN = RGB.new(0.0, 1.0, 1.0)
+ # Dark Blue: #00008B
+ DARK_BLUE = RGB.new(0.0, 0.0, 0.545098039215686)
+ # Dark Cyan: #008B8B
+ DARK_CYAN = RGB.new(0.0, 0.545098039215686, 0.545098039215686)
+ # Dark Goldenrod: #B8860B
+ DARK_GOLDENROD = RGB.new(0.72156862745098, 0.525490196078431, 0.0431372549019608)
+ # Dark Gray: #A9A9A9
+ DARK_GRAY = RGB.new(0.662745098039216, 0.662745098039216, 0.662745098039216)
+ # Dark Green: #006400
+ DARK_GREEN = RGB.new(0.0, 0.392156862745098, 0.0)
+ # Dark Khaki: #BDB76B
+ DARK_KHAKI = RGB.new(0.741176470588235, 0.717647058823529, 0.419607843137255)
+ # Dark Magenta: #8B008B
+ DARK_MAGENTA = RGB.new(0.545098039215686, 0.0, 0.545098039215686)
+ # Dark Olive Green: #556B2F
+ DARK_OLIVE_GREEN = RGB.new(0.333333333333333, 0.419607843137255, 0.184313725490196)
+ # Dark Orange: #FF8C00
+ DARK_ORANGE = RGB.new(1.0, 0.549019607843137, 0.0)
+ # Dark Orchid: #9932CC
+ DARK_ORCHID = RGB.new(0.6, 0.196078431372549, 0.8)
+ # Dark Red: #8B0000
+ DARK_RED = RGB.new(0.545098039215686, 0.0, 0.0)
+ # Dark Salmon: #E9967A
+ DARK_SALMON = RGB.new(0.913725490196078, 0.588235294117647, 0.47843137254902)
+ # Dark Sea Green: #8FBC8F
+ DARK_SEA_GREEN = RGB.new(0.56078431372549, 0.737254901960784, 0.56078431372549)
+ # Dark Slate Blue: #483D8B
+ DARK_SLATE_BLUE = RGB.new(0.282352941176471, 0.23921568627451, 0.545098039215686)
+ # Dark Slate Gray: #2F4F4F
+ DARK_SLATE_GRAY = RGB.new(0.184313725490196, 0.309803921568627, 0.309803921568627)
+ # Dark Turquoise: #00CED1
+ DARK_TURQUOISE = RGB.new(0.0, 0.807843137254902, 0.819607843137255)
+ # Dark Violet: #9400D3
+ DARK_VIOLET = RGB.new(0.580392156862745, 0.0, 0.827450980392157)
+ # Deep Pink: #FF1493
+ DEEP_PINK = RGB.new(1.0, 0.0784313725490196, 0.576470588235294)
+ # Deep Sky Blue: #00BFFF
+ DEEP_SKY_BLUE = RGB.new(0.0, 0.749019607843137, 1.0)
+ # Dim Gray: #696969
+ DIM_GRAY = RGB.new(0.411764705882353, 0.411764705882353, 0.411764705882353)
+ # Dodger Blue: #1E90FF
+ DODGER_BLUE = RGB.new(0.117647058823529, 0.564705882352941, 1.0)
+ # Fire Brick: #B22222
+ FIRE_BRICK = RGB.new(0.698039215686274, 0.133333333333333, 0.133333333333333)
+ # Floral White: #FFFAF0
+ FLORAL_WHITE = RGB.new(1.0, 0.980392156862745, 0.941176470588235)
+ # Forest Green: #228B22
+ FOREST_GREEN = RGB.new(0.133333333333333, 0.545098039215686, 0.133333333333333)
+ # Fuchsia: #FF00FF
+ FUCHSIA = RGB.new(1.0, 0.0, 1.0)
+ # Gainsboro: #DCDCDC
+ GAINSBORO = RGB.new(0.862745098039216, 0.862745098039216, 0.862745098039216)
+ # Ghost White: #F8F8FF
+ GHOST_WHITE = RGB.new(0.972549019607843, 0.972549019607843, 1.0)
+ # Gold: #FFD700
+ GOLD = RGB.new(1.0, 0.843137254901961, 0.0)
+ # Goldenrod: #DAA520
+ GOLDENROD = RGB.new(0.854901960784314, 0.647058823529412, 0.125490196078431)
+ # Green Yellow: #ADFF2F
+ GREEN_YELLOW = RGB.new(0.67843137254902, 1.0, 0.184313725490196)
+ # Honeydew: #F0FFF0
+ HONEYDEW = RGB.new(0.941176470588235, 1.0, 0.941176470588235)
+ # Hot Pink: #FF69B4
+ HOT_PINK = RGB.new(1.0, 0.411764705882353, 0.705882352941177)
+ # Indian Red: #CD5C5C
+ INDIAN_RED = RGB.new(0.803921568627451, 0.36078431372549, 0.36078431372549)
+ # Indigo: #4B0082
+ INDIGO = RGB.new(0.294117647058824, 0.0, 0.509803921568627)
+ # Ivory: #FFFFF0
+ IVORY = RGB.new(1.0, 1.0, 0.941176470588235)
+ # Khaki: #F0E68C
+ KHAKI = RGB.new(0.941176470588235, 0.901960784313726, 0.549019607843137)
+ # Lavender: #E6E6FA
+ LAVENDER = RGB.new(0.901960784313726, 0.901960784313726, 0.980392156862745)
+ # Lavender Blush: #FFF0F5
+ LAVENDER_BLUSH = RGB.new(1.0, 0.941176470588235, 0.96078431372549)
+ # Lawn Green: #7CFC00
+ LAWN_GREEN = RGB.new(0.486274509803922, 0.988235294117647, 0.0)
+ # Lemon Chiffon: #FFFACD
+ LEMON_CHIFFON = RGB.new(1.0, 0.980392156862745, 0.803921568627451)
+ # Light Blue: #ADD8E6
+ LIGHT_BLUE = RGB.new(0.67843137254902, 0.847058823529412, 0.901960784313726)
+ # Light Coral: #F08080
+ LIGHT_CORAL = RGB.new(0.941176470588235, 0.501960784313725, 0.501960784313725)
+ # Light Cyan: #E0FFFF
+ LIGHT_CYAN = RGB.new(0.87843137254902, 1.0, 1.0)
+ # Light Goldenrod Yellow: #FAFAD2
+ LIGHT_GOLDENROD_YELLOW = RGB.new(0.980392156862745, 0.980392156862745, 0.823529411764706)
+ # Light Green: #90EE90
+ LIGHT_GREEN = RGB.new(0.564705882352941, 0.933333333333333, 0.564705882352941)
+ # Light Grey: #D3D3D3
+ LIGHT_GREY = RGB.new(0.827450980392157, 0.827450980392157, 0.827450980392157)
+ # Light Pink: #FFB6C1
+ LIGHT_PINK = RGB.new(1.0, 0.713725490196078, 0.756862745098039)
+ # Light Salmon: #FFA07A
+ LIGHT_SALMON = RGB.new(1.0, 0.627450980392157, 0.47843137254902)
+ # Light Sea Green: #20B2AA
+ LIGHT_SEA_GREEN = RGB.new(0.125490196078431, 0.698039215686274, 0.666666666666667)
+ # Light Sky Blue: #87CEFA
+ LIGHT_SKY_BLUE = RGB.new(0.529411764705882, 0.807843137254902, 0.980392156862745)
+ # Light Slate Gray: #778899
+ LIGHT_SLATE_GRAY = RGB.new(0.466666666666667, 0.533333333333333, 0.6)
+ # Light Steel Blue: #B0C4DE
+ LIGHT_STEEL_BLUE = RGB.new(0.690196078431373, 0.768627450980392, 0.870588235294118)
+ # Light Yellow: #FFFFE0
+ LIGHT_YELLOW = RGB.new(1.0, 1.0, 0.87843137254902)
+ # Lime: #00FF00
+ LIME = RGB.new(0.0, 1.0, 0.0)
+ # Lime Green: #32CD32
+ LIME_GREEN = RGB.new(0.196078431372549, 0.803921568627451, 0.196078431372549)
+ # Linen: #FAF0E6
+ LINEN = RGB.new(0.980392156862745, 0.941176470588235, 0.901960784313726)
+ # Magenta: #FF00FF
+ MAGENTA = RGB.new(1.0, 0.0, 1.0)
+ # Medium Aquamarine: #66CDAA
+ MEDIUM_AQUAMARINE = RGB.new(0.4, 0.803921568627451, 0.666666666666667)
+ # Medium Blue: #0000CD
+ MEDIUM_BLUE = RGB.new(0.0, 0.0, 0.803921568627451)
+ # Medium Orchid: #BA55D3
+ MEDIUM_ORCHID = RGB.new(0.729411764705882, 0.333333333333333, 0.827450980392157)
+ # Medium Purple: #9370DB
+ MEDIUM_PURPLE = RGB.new(0.576470588235294, 0.43921568627451, 0.858823529411765)
+ # Medium Sea Green: #3CB371
+ MEDIUM_SEA_GREEN = RGB.new(0.235294117647059, 0.701960784313725, 0.443137254901961)
+ # Medium Slate Blue: #7B68EE
+ MEDIUM_SLATE_BLUE = RGB.new(0.482352941176471, 0.407843137254902, 0.933333333333333)
+ # Medium Spring Green: #00FA9A
+ MEDIUM_SPRING_GREEN = RGB.new(0.0, 0.980392156862745, 0.603921568627451)
+ # Medium Turquoise: #48D1CC
+ MEDIUM_TURQUOISE = RGB.new(0.282352941176471, 0.819607843137255, 0.8)
+ # Medium Violet Red: #C71585
+ MEDIUM_VIOLET_RED = RGB.new(0.780392156862745, 0.0823529411764706, 0.52156862745098)
+ # Midnight Blue: #191970
+ MIDNIGHT_BLUE = RGB.new(0.0980392156862745, 0.0980392156862745, 0.43921568627451)
+ # Mint Cream: #F5FFFA
+ MINT_CREAM = RGB.new(0.96078431372549, 1.0, 0.980392156862745)
+ # Misty Rose: #FFE4E1
+ MISTY_ROSE = RGB.new(1.0, 0.894117647058824, 0.882352941176471)
+ # Moccasin: #FFE4B5
+ MOCCASIN = RGB.new(1.0, 0.894117647058824, 0.709803921568627)
+ # Navajo White: #FFDEAD
+ NAVAJO_WHITE = RGB.new(1.0, 0.870588235294118, 0.67843137254902)
+ # Old Lace: #FDF5E6
+ OLD_LACE = RGB.new(0.992156862745098, 0.96078431372549, 0.901960784313726)
+ # Olive: #808000
+ OLIVE = RGB.new(0.501960784313725, 0.501960784313725, 0.0)
+ # Olive Drab: #6B8E23
+ OLIVE_DRAB = RGB.new(0.419607843137255, 0.556862745098039, 0.137254901960784)
+ # Orange: #FFA500
+ ORANGE = RGB.new(1.0, 0.647058823529412, 0.0)
+ # Orange Red: #FF4500
+ ORANGE_RED = RGB.new(1.0, 0.270588235294118, 0.0)
+ # Orchid: #DA70D6
+ ORCHID = RGB.new(0.854901960784314, 0.43921568627451, 0.83921568627451)
+ # Pale Goldenrod: #EEE8AA
+ PALE_GOLDENROD = RGB.new(0.933333333333333, 0.909803921568627, 0.666666666666667)
+ # Pale Green: #98FB98
+ PALE_GREEN = RGB.new(0.596078431372549, 0.984313725490196, 0.596078431372549)
+ # Pale Turquoise: #AFEEEE
+ PALE_TURQUOISE = RGB.new(0.686274509803922, 0.933333333333333, 0.933333333333333)
+ # Pale Violet Red: #DB7093
+ PALE_VIOLET_RED = RGB.new(0.858823529411765, 0.43921568627451, 0.576470588235294)
+ # Papaya Whip: #FFEFD5
+ PAPAYA_WHIP = RGB.new(1.0, 0.937254901960784, 0.835294117647059)
+ # Peach Puff: #FFDAB9
+ PEACH_PUFF = RGB.new(1.0, 0.854901960784314, 0.725490196078431)
+ # Peru: #CD853F
+ PERU = RGB.new(0.803921568627451, 0.52156862745098, 0.247058823529412)
+ # Pink: #FFC0CB
+ PINK = RGB.new(1.0, 0.752941176470588, 0.796078431372549)
+ # Plum: #DDA0DD
+ PLUM = RGB.new(0.866666666666667, 0.627450980392157, 0.866666666666667)
+ # Powder Blue: #B0E0E6
+ POWDER_BLUE = RGB.new(0.690196078431373, 0.87843137254902, 0.901960784313726)
+ # Red: #FF0000
+ RED = RGB.new(1.0, 0.0, 0.0)
+ # Rosy Brown: #BC8F8F
+ ROSY_BROWN = RGB.new(0.737254901960784, 0.56078431372549, 0.56078431372549)
+ # Royal Blue: #4169E1
+ ROYAL_BLUE = RGB.new(0.254901960784314, 0.411764705882353, 0.882352941176471)
+ # Saddle Brown: #8B4513
+ SADDLE_BROWN = RGB.new(0.545098039215686, 0.270588235294118, 0.0745098039215686)
+ # Salmon: #FA8072
+ SALMON = RGB.new(0.980392156862745, 0.501960784313725, 0.447058823529412)
+ # Sandy Brown: #F4A460
+ SANDY_BROWN = RGB.new(0.956862745098039, 0.643137254901961, 0.376470588235294)
+ # Sea Green: #2E8B57
+ SEA_GREEN = RGB.new(0.180392156862745, 0.545098039215686, 0.341176470588235)
+ # Seashell: #FFF5EE
+ SEASHELL = RGB.new(1.0, 0.96078431372549, 0.933333333333333)
+ # Sienna: #A0522D
+ SIENNA = RGB.new(0.627450980392157, 0.32156862745098, 0.176470588235294)
+ # Silver: #C0C0C0
+ SILVER = RGB.new(0.752941176470588, 0.752941176470588, 0.752941176470588)
+ # Sky Blue: #87CEEB
+ SKY_BLUE = RGB.new(0.529411764705882, 0.807843137254902, 0.92156862745098)
+ # Slate Blue: #6A5ACD
+ SLATE_BLUE = RGB.new(0.415686274509804, 0.352941176470588, 0.803921568627451)
+ # Slate Gray: #708090
+ SLATE_GRAY = RGB.new(0.43921568627451, 0.501960784313725, 0.564705882352941)
+ # Snow: #FFFAFA
+ SNOW = RGB.new(1.0, 0.980392156862745, 0.980392156862745)
+ # Spring Green: #00FF7F
+ SPRING_GREEN = RGB.new(0.0, 1.0, 0.498039215686275)
+ # Steel Blue: #4682B4
+ STEEL_BLUE = RGB.new(0.274509803921569, 0.509803921568627, 0.705882352941177)
+ # Tan: #D2B48C
+ TAN = RGB.new(0.823529411764706, 0.705882352941177, 0.549019607843137)
+ # Teal: #008080
+ TEAL = RGB.new(0.0, 0.501960784313725, 0.501960784313725)
+ # Thistle: #D8BFD8
+ THISTLE = RGB.new(0.847058823529412, 0.749019607843137, 0.847058823529412)
+ # Tomato: #FF6347
+ TOMATO = RGB.new(1.0, 0.388235294117647, 0.27843137254902)
+ # Turquoise: #40E0D0
+ TURQUOISE = RGB.new(0.250980392156863, 0.87843137254902, 0.815686274509804)
+ # Violet: #EE82EE
+ VIOLET = RGB.new(0.933333333333333, 0.509803921568627, 0.933333333333333)
+ # Wheat: #F5DEB3
+ WHEAT = RGB.new(0.96078431372549, 0.870588235294118, 0.701960784313725)
+ # White: #FFFFFF
+ WHITE = RGB.new(1.0, 1.0, 1.0)
+ # White Smoke: #F5F5F5
+ WHITE_SMOKE = RGB.new(0.96078431372549, 0.96078431372549, 0.96078431372549)
+ # Yellow: #FFFF00
+ YELLOW = RGB.new(1.0, 1.0, 0.0)
+ # Yellow Green: #9ACD32
+ YELLOW_GREEN = RGB.new(0.603921568627451, 0.803921568627451, 0.196078431372549)
+ end
+ include X11
+
end
end
More information about the cairo-commit
mailing list