赞 | 4 |
VIP | 71 |
好人卡 | 22 |
积分 | 6 |
经验 | 32145 |
最后登录 | 2013-8-9 |
在线时间 | 184 小时 |
Lv2.观梦者 天仙
- 梦石
- 0
- 星屑
- 645
- 在线时间
- 184 小时
- 注册时间
- 2008-4-15
- 帖子
- 5023

|
http://www.w3schools.com/html/html_colornames.asp
顏色列表
加上剛才紫妹提供給你的工具獲取三原色
或是直接用下面的腳本
self.contents.color = 某顏色名
下面的腳本還沒打完
目前到 fire_brick
- class Window
- #============================================================================
- # 紅色
- #============================================================================
- def red
- return Color.new(255, 0, 0)
- end
- #============================================================================
- # 綠色
- #============================================================================
- def green
- return Color.new(0, 255, 0)
- end
- #============================================================================
- # 藍色
- #============================================================================
- def blue
- return Color.new(0, 0, 255)
- end
- #============================================================================
- # 黃色
- #============================================================================
- def yellow
- return Color.new(255, 255, 0)
- end
- #============================================================================
- # 藍綠色
- #============================================================================
- def cyan
- return Color.new(0, 255, 255)
- end
- #============================================================================
- # 洋紅色
- #============================================================================
- def magenta
- return Color.new(255, 0, 255)
- end
- #============================================================================
- # 白色
- #============================================================================
- def white
- return Color.new(255, 255, 255)
- end
- #============================================================================
- # 黑色
- #============================================================================
- def black
- return Color.new(0, 0, 0)
- end
- #============================================================================
- # 灰色
- #============================================================================
- def grey
- return Color.new(128, 128, 128)
- end
- #============================================================================
- # 冰藍色
- #============================================================================
- def alice_blue
- return Color.new(240,248,255)
- end
- #============================================================================
- # 骨董白
- #============================================================================
- def antique_white
- return Color.new(250,235,215)
- end
- #============================================================================
- # 水藍色
- #============================================================================
- def aqua
- return Color.new(0,237,255)
- end
- #============================================================================
- # 碧綠色
- #============================================================================
- def aquamarine
- return Color.new(127,255,212)
- end
- #============================================================================
- # 淡青色
- #============================================================================
- def azure
- return Color.new(240,255,255)
- end
- #============================================================================
- # 灰棕色
- #============================================================================
- def beige
- return Color.new(245,245,220)
- end
- #============================================================================
- # 陶黃色
- #============================================================================
- def bisque
- return Color.new(255,228,196)
- end
- #============================================================================
- # 杏白色
- #============================================================================
- def blanched_almond
- return Color.new(255,235,205)
- end
- #============================================================================
- # 藍紫色
- #============================================================================
- def blue_violet
- return Color.new(138,43,226)
- end
- #============================================================================
- # 棕色
- #============================================================================
- def brown
- return Color.new(165,42,42)
- end
- #============================================================================
- # 粗木色
- #============================================================================
- def burly_wood
- return Color.new(222,184,135)
- end
- #============================================================================
- # 軍藍色
- #============================================================================
- def cadet_blue
- return Color.new(95,158,160)
- end
- #============================================================================
- # 淡黃綠色
- #============================================================================
- def chartreuse
- return Color.new(127,255,0)
- end
- #============================================================================
- # 巧克力色
- #============================================================================
- def chocolate
- return Color.new(210,105,30)
- end
- #============================================================================
- # 珊瑚色
- #============================================================================
- def coral
- return Color.new(255,127,80)
- end
- #============================================================================
- # 瞿麥藍色
- #============================================================================
- def cornflower_blue
- return Color.new(100,149,237)
- end
- #============================================================================
- # 黍穗色
- #============================================================================
- def cornsilk
- return Color.new(255,248,220)
- end
- #============================================================================
- # 深紅色
- #============================================================================
- def crimson
- return Color.new(220,20,60)
- end
- #============================================================================
- # 暗藍色
- #============================================================================
- def dark_blue
- return Color.new(0,0,139)
- end
- #============================================================================
- # 暗藍綠色
- #============================================================================
- def dark_cyan
- return Color.new(0,139,139)
- end
- #============================================================================
- # 暗金黃色
- #============================================================================
- def dark_goldenrod
- return Color.new(184,134,11)
- end
- #============================================================================
- # 暗灰色
- #============================================================================
- def dark_grey
- return Color.new(169,169,169)
- end
- #============================================================================
- # 暗綠色
- #============================================================================
- def dark_green
- return Color.new(0,100,0)
- end
- #============================================================================
- # 暗黃褐色
- #============================================================================
- def dark_khaki
- return Color.new(189,183,107)
- end
- #============================================================================
- # 暗洋紅色
- #============================================================================
- def dark_magenta
- return Color.new(139,0,139)
- end
- #============================================================================
- # 暗橄欖綠色
- #============================================================================
- def dark_olive_green
- return Color.new(85,107,47)
- end
- #============================================================================
- # 暗橘色
- #============================================================================
- def dark_orange
- return Color.new(255,140,0)
- end
- #============================================================================
- # 暗紫蘭色
- #============================================================================
- def dark_orchid
- return Color.new(153,50,204)
- end
- #============================================================================
- # 暗紅色
- #============================================================================
- def dark_red
- return Color.new(139,0,0)
- end
- #============================================================================
- # 暗粉紅色
- #============================================================================
- def dark_salmon
- return Color.new(233,150,122)
- end
- #============================================================================
- # 暗海綠色
- #============================================================================
- def dark_seagreen
- return Color.new(143,188,143)
- end
- #============================================================================
- # 暗石板藍
- #============================================================================
- def dark_slate_blue
- return Color.new(72,61,139)
- end
- #============================================================================
- # 暗石板灰
- #============================================================================
- def dark_slate_grey
- return Color.new(47,79,79)
- end
- #============================================================================
- # 暗青綠色
- #============================================================================
- def dark_turquoise
- return Color.new(0,206,209)
- end
- #============================================================================
- # 暗紫色
- #============================================================================
- def dark_violet
- return Color.new(148,0,211)
- end
- #============================================================================
- # 深粉紅色
- #============================================================================
- def deep_pink
- return Color.new(255,20,147)
- end
- #============================================================================
- # 深天藍色
- #============================================================================
- def deep_sky_blue
- return Color.new(0,191,255)
- end
- #============================================================================
- # 幽灰色
- #============================================================================
- def dim_grey
- return Color.new(105,105,105)
- end
- #============================================================================
- # 混藍色
- #============================================================================
- def dodger_blue
- return Color.new(30,144,255)
- end
- #============================================================================
- # 火磚紅
- #============================================================================
- def fire_brick
- return Color.new(178,34,34)
- end
- #============================================================================
- # 顏色
- #============================================================================
- def color
- return Color.new(255, 255, 255)
- end
- end
复制代码 |
|