Class: DynamicPDFApi::RgbColor
- Defined in:
- lib/ruby_client/RgbColor.rb
Overview
Represents an RGB color.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#_color_string ⇒ Object
private string colorString.
Class Method Summary collapse
-
.alice_blue ⇒ Object
Gets the color alice blue.
-
.antique_white ⇒ Object
Gets the color antique white.
-
.aqua ⇒ Object
Gets the color aqua.
-
.aquamarine ⇒ Object
Gets the color aquamarine.
-
.azure ⇒ Object
Gets the color azure.
-
.beige ⇒ Object
Gets the color beige.
-
.bisque ⇒ Object
Gets the color bisque.
-
.black ⇒ Object
Gets the color black.
-
.blanched_almond ⇒ Object
Gets the color blanched almond.
-
.blue ⇒ Object
Gets the color blue.
-
.blue_violet ⇒ Object
Gets the color blue violet.
-
.brown ⇒ Object
Gets the color brown.
-
.burly_wood ⇒ Object
Gets the color burly wood.
-
.cadet_blue ⇒ Object
Gets the color cadet blue.
-
.chartreuse ⇒ Object
Gets the color chartreuse.
-
.chocolate ⇒ Object
Gets the color chocolate.
-
.coral ⇒ Object
Gets the color coral.
-
.cornflower_blue ⇒ Object
Gets the color cornflower blue.
-
.cornsilk ⇒ Object
Gets the color cornsilk.
- .create_rgb_color(color_string = nil) ⇒ Object
-
.crimson ⇒ Object
Gets the color crimson.
-
.cyan ⇒ Object
Gets the color cyan.
-
.dark_blue ⇒ Object
Gets the color dark blue.
-
.dark_cyan ⇒ Object
Gets the color dark cyan.
-
.dark_golden_rod ⇒ Object
Gets the color dark golden rod.
-
.dark_gray ⇒ Object
Gets the color dark gray.
-
.dark_green ⇒ Object
Gets the color dark green.
-
.dark_khaki ⇒ Object
Gets the color dark khaki.
-
.dark_magenta ⇒ Object
Gets the color dark magenta.
-
.dark_olive_green ⇒ Object
Gets the color dark olive green.
-
.dark_orange ⇒ Object
Gets the color dark orange.
-
.dark_orchid ⇒ Object
Gets the color dark orchid.
-
.dark_red ⇒ Object
Gets the color dark red.
-
.dark_salmon ⇒ Object
Gets the color dark salmon.
-
.dark_sea_green ⇒ Object
Gets the color dark sea green.
-
.dark_slate_blue ⇒ Object
Gets the color dark slate blue.
-
.dark_slate_gray ⇒ Object
Gets the color dark slate gray.
-
.dark_turquoise ⇒ Object
Gets the color dark turquoise.
-
.dark_violet ⇒ Object
Gets the color dark violet.
-
.deep_pink ⇒ Object
Gets the color deep pink.
-
.deep_sky_blue ⇒ Object
Gets the color deep sky blue.
-
.dim_gray ⇒ Object
Gets the color dim gray.
-
.dodger_blue ⇒ Object
Gets the color dodger blue.
-
.feldspar ⇒ Object
Gets the color feldspar.
-
.fire_brick ⇒ Object
Gets the color fire brick.
-
.floral_white ⇒ Object
Gets the color floral white.
-
.forest_green ⇒ Object
Gets the color forest green.
-
.fuchsia ⇒ Object
Gets the color fuchsia.
-
.gainsboro ⇒ Object
Gets the color gainsboro.
-
.ghost_white ⇒ Object
Gets the color ghost white.
-
.gold ⇒ Object
Gets the color gold.
-
.golden_rod ⇒ Object
Gets the color golden rod.
-
.gray ⇒ Object
Gets the color gray.
-
.green ⇒ Object
Gets the color green.
-
.green_yellow ⇒ Object
Gets the color green yellow.
-
.honey_dew ⇒ Object
Gets the color honey dew.
-
.hot_pink ⇒ Object
Gets the color hot pink.
-
.indian_red ⇒ Object
Gets the color indian red.
-
.indigo ⇒ Object
Gets the color indigo.
-
.ivory ⇒ Object
Gets the color ivory.
-
.khaki ⇒ Object
Gets the color khaki.
-
.lavender ⇒ Object
Gets the color lavender.
-
.lavender_blush ⇒ Object
Gets the color lavender blush.
-
.lawn_green ⇒ Object
Gets the color lawn Green.
-
.lemon_chiffon ⇒ Object
Gets the color lemon chiffon.
-
.light_blue ⇒ Object
Gets the color light blue.
-
.light_coral ⇒ Object
Gets the color light coral.
-
.light_cyan ⇒ Object
Gets the color light cyan.
-
.light_golden_rod_yellow ⇒ Object
Gets the color light golden rod yellow.
-
.light_green ⇒ Object
Gets the color light green.
-
.light_grey ⇒ Object
Gets the color light grey.
-
.light_pink ⇒ Object
Gets the color light pink.
-
.light_salmon ⇒ Object
Gets the color light salmon.
-
.light_sea_green ⇒ Object
Gets the color light sea green.
-
.light_sky_blue ⇒ Object
Gets the color light sky blue.
-
.light_slate_blue ⇒ Object
Gets the color light slate blue.
-
.light_slate_gray ⇒ Object
Gets the color light slate gray.
-
.light_steel_blue ⇒ Object
Gets the color light steel blue.
-
.light_yellow ⇒ Object
Gets the color light yellow.
-
.lime ⇒ Object
Gets the color lime.
-
.lime_green ⇒ Object
Gets the color lime green.
-
.linen ⇒ Object
Gets the color linen.
-
.magenta ⇒ Object
Gets the color magenta.
-
.maroon ⇒ Object
Gets the color maroon.
-
.medium_aqua_marine ⇒ Object
Gets the color medium aqua marine.
-
.medium_blue ⇒ Object
Gets the color medium blue.
-
.medium_orchid ⇒ Object
Gets the color medium orchid.
-
.medium_purple ⇒ Object
Gets the color medium purple.
-
.medium_sea_green ⇒ Object
Gets the color medium sea green.
-
.medium_slate_blue ⇒ Object
Gets the color medium slate blue.
-
.medium_spring_green ⇒ Object
Gets the color medium spring green.
-
.medium_turquoise ⇒ Object
Gets the color medium turquoise.
-
.medium_violet_red ⇒ Object
Gets the color medium violet red.
-
.midnight_blue ⇒ Object
Gets the color midnight blue.
-
.mint_cream ⇒ Object
Gets the color mint cream.
-
.misty_rose ⇒ Object
Gets the color misty rose.
-
.moccasin ⇒ Object
Gets the color moccasin.
-
.navajo_white ⇒ Object
Gets the color navajo white.
-
.navy ⇒ Object
Gets the color navy.
-
.old_lace ⇒ Object
Gets the color old lace.
-
.olive ⇒ Object
Gets the color olive.
-
.olive_drab ⇒ Object
Gets the color olive drab.
-
.orange ⇒ Object
Gets the color orange.
-
.orange_red ⇒ Object
Gets the color orange red.
-
.orchid ⇒ Object
Gets the color orchid.
-
.pale_golden_rod ⇒ Object
Gets the color pale golden rod.
-
.pale_green ⇒ Object
Gets the color pale green.
-
.pale_turquoise ⇒ Object
Gets the color pale turquoise.
-
.pale_violet_red ⇒ Object
Gets the color pale violet red.
-
.papaya_whip ⇒ Object
Gets the color papaya whip.
-
.peach_puff ⇒ Object
Gets the color peach puff.
-
.peru ⇒ Object
Gets the color peru.
-
.pink ⇒ Object
Gets the color pink.
-
.plum ⇒ Object
Gets the color plum.
-
.powder_blue ⇒ Object
Gets the color powder blue.
-
.purple ⇒ Object
Gets the color purple.
-
.red ⇒ Object
Gets the color red.
-
.rosy_brown ⇒ Object
Gets the color rosy brown.
-
.royal_blue ⇒ Object
Gets the color royal blue.
-
.saddle_brown ⇒ Object
Gets the color saddle brown.
-
.salmon ⇒ Object
Gets the color salmon.
-
.sandy_brown ⇒ Object
Gets the color sandy brown.
-
.sea_green ⇒ Object
Gets the color sea green.
-
.sea_shell ⇒ Object
Gets the color sea shell.
-
.sienna ⇒ Object
Gets the color sienna.
-
.silver ⇒ Object
Gets the color silver.
-
.sky_blue ⇒ Object
Gets the color sky blue.
-
.slate_blue ⇒ Object
Gets the color slate blue.
-
.slate_gray ⇒ Object
Gets the color slate gray.
-
.snow ⇒ Object
Gets the color snow.
-
.spring_green ⇒ Object
Gets the color spring green.
-
.steel_blue ⇒ Object
Gets the color steel blue.
-
.tan ⇒ Object
Gets the color Tan.
-
.teal ⇒ Object
Gets the color teal.
-
.thistle ⇒ Object
Gets the color thistle.
-
.tomato ⇒ Object
Gets the color tomato.
-
.turquoise ⇒ Object
Gets the color turquoise.
-
.violet ⇒ Object
Gets the color violet.
-
.violet_red ⇒ Object
Gets the color violet red.
-
.wheat ⇒ Object
Gets the color wheat.
-
.white ⇒ Object
Gets the color white.
-
.white_smoke ⇒ Object
Gets the color white smoke.
-
.yellow ⇒ Object
Gets the color yellow.
-
.yellow_green ⇒ Object
Gets the color yellow green.
Instance Method Summary collapse
-
#initialize(red = 0, green = 0, blue = 0) ⇒ RgbColor
constructor
Initializes a new instance of the RgbColor class.
- #to_json(_options = {}) ⇒ Object
Constructor Details
#initialize(red = 0, green = 0, blue = 0) ⇒ RgbColor
Initializes a new instance of the RgbColor class.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/ruby_client/RgbColor.rb', line 19 def initialize(red = 0, green = 0, blue = 0) super() if red < 0.0 || red > 1.0 || green < 0.0 || green > 1.0 || blue < 0.0 || blue > 1.0 Raise "RGB values must be from 0.0 to 1.0." end @red = red @green = green @blue = blue @_color_string = "rgb(#{red},#{green},#{blue})" end |
Instance Attribute Details
#_color_string ⇒ Object
private string colorString
10 11 12 |
# File 'lib/ruby_client/RgbColor.rb', line 10 def _color_string @_color_string end |
Class Method Details
.alice_blue ⇒ Object
Gets the color alice blue.
145 146 147 |
# File 'lib/ruby_client/RgbColor.rb', line 145 def self.alice_blue RgbColor.create_rgb_color("AliceBlue") end |
.antique_white ⇒ Object
Gets the color antique white.
152 153 154 |
# File 'lib/ruby_client/RgbColor.rb', line 152 def self.antique_white RgbColor.create_rgb_color("AntiqueWhite") end |
.aqua ⇒ Object
Gets the color aqua.
110 111 112 |
# File 'lib/ruby_client/RgbColor.rb', line 110 def self.aqua RgbColor.create_rgb_color("Aqua") end |
.aquamarine ⇒ Object
Gets the color aquamarine.
159 160 161 |
# File 'lib/ruby_client/RgbColor.rb', line 159 def self.aquamarine RgbColor.create_rgb_color("Aquamarine") end |
.azure ⇒ Object
Gets the color azure.
166 167 168 |
# File 'lib/ruby_client/RgbColor.rb', line 166 def self.azure RgbColor.create_rgb_color("Azure") end |
.beige ⇒ Object
Gets the color beige.
173 174 175 |
# File 'lib/ruby_client/RgbColor.rb', line 173 def self.beige RgbColor.create_rgb_color("Beige") end |
.bisque ⇒ Object
Gets the color bisque.
180 181 182 |
# File 'lib/ruby_client/RgbColor.rb', line 180 def self.bisque RgbColor.create_rgb_color("Bisque") end |
.black ⇒ Object
Gets the color black.
61 62 63 |
# File 'lib/ruby_client/RgbColor.rb', line 61 def self.black RgbColor.create_rgb_color("Black") end |
.blanched_almond ⇒ Object
Gets the color blanched almond.
187 188 189 |
# File 'lib/ruby_client/RgbColor.rb', line 187 def self.blanched_almond RgbColor.create_rgb_color("BlanchedAlmond") end |
.blue ⇒ Object
Gets the color blue.
47 48 49 |
# File 'lib/ruby_client/RgbColor.rb', line 47 def self.blue RgbColor.create_rgb_color("Blue") end |
.blue_violet ⇒ Object
Gets the color blue violet.
194 195 196 |
# File 'lib/ruby_client/RgbColor.rb', line 194 def self.blue_violet RgbColor.create_rgb_color("BlueViolet") end |
.brown ⇒ Object
Gets the color brown.
201 202 203 |
# File 'lib/ruby_client/RgbColor.rb', line 201 def self.brown RgbColor.create_rgb_color("Brown") end |
.burly_wood ⇒ Object
Gets the color burly wood.
208 209 210 |
# File 'lib/ruby_client/RgbColor.rb', line 208 def self.burly_wood RgbColor.create_rgb_color("BurlyWood") end |
.cadet_blue ⇒ Object
Gets the color cadet blue.
215 216 217 |
# File 'lib/ruby_client/RgbColor.rb', line 215 def self.cadet_blue RgbColor.create_rgb_color("CadetBlue") end |
.chartreuse ⇒ Object
Gets the color chartreuse.
222 223 224 |
# File 'lib/ruby_client/RgbColor.rb', line 222 def self.chartreuse RgbColor.create_rgb_color("Chartreuse") end |
.chocolate ⇒ Object
Gets the color chocolate.
229 230 231 |
# File 'lib/ruby_client/RgbColor.rb', line 229 def self.chocolate RgbColor.create_rgb_color("Chocolate") end |
.coral ⇒ Object
Gets the color coral.
236 237 238 |
# File 'lib/ruby_client/RgbColor.rb', line 236 def self.coral RgbColor.create_rgb_color("Coral") end |
.cornflower_blue ⇒ Object
Gets the color cornflower blue.
243 244 245 |
# File 'lib/ruby_client/RgbColor.rb', line 243 def self.cornflower_blue RgbColor.create_rgb_color("CornflowerBlue") end |
.cornsilk ⇒ Object
Gets the color cornsilk.
250 251 252 |
# File 'lib/ruby_client/RgbColor.rb', line 250 def self.cornsilk RgbColor.create_rgb_color("Cornsilk") end |
.create_rgb_color(color_string = nil) ⇒ Object
31 32 33 34 35 |
# File 'lib/ruby_client/RgbColor.rb', line 31 def self.create_rgb_color(color_string = nil) rgb_color = RgbColor.new rgb_color._color_string = color_string rgb_color end |
.crimson ⇒ Object
Gets the color crimson.
257 258 259 |
# File 'lib/ruby_client/RgbColor.rb', line 257 def self.crimson RgbColor.create_rgb_color("Crimson") end |
.cyan ⇒ Object
Gets the color cyan.
124 125 126 |
# File 'lib/ruby_client/RgbColor.rb', line 124 def self.cyan RgbColor.create_rgb_color("Cyan") end |
.dark_blue ⇒ Object
Gets the color dark blue.
264 265 266 |
# File 'lib/ruby_client/RgbColor.rb', line 264 def self.dark_blue RgbColor.create_rgb_color("DarkBlue") end |
.dark_cyan ⇒ Object
Gets the color dark cyan.
271 272 273 |
# File 'lib/ruby_client/RgbColor.rb', line 271 def self.dark_cyan RgbColor.create_rgb_color("DarkCyan") end |
.dark_golden_rod ⇒ Object
Gets the color dark golden rod.
278 279 280 |
# File 'lib/ruby_client/RgbColor.rb', line 278 def self.dark_golden_rod RgbColor.create_rgb_color("DarkGoldenRod") end |
.dark_gray ⇒ Object
Gets the color dark gray.
75 76 77 |
# File 'lib/ruby_client/RgbColor.rb', line 75 def self.dark_gray RgbColor.create_rgb_color("DarkGray") end |
.dark_green ⇒ Object
Gets the color dark green.
285 286 287 |
# File 'lib/ruby_client/RgbColor.rb', line 285 def self.dark_green RgbColor.create_rgb_color("DarkGreen") end |
.dark_khaki ⇒ Object
Gets the color dark khaki.
292 293 294 |
# File 'lib/ruby_client/RgbColor.rb', line 292 def self.dark_khaki RgbColor.create_rgb_color("DarkKhaki") end |
.dark_magenta ⇒ Object
Gets the color dark magenta.
299 300 301 |
# File 'lib/ruby_client/RgbColor.rb', line 299 def self.dark_magenta RgbColor.create_rgb_color("DarkMagenta") end |
.dark_olive_green ⇒ Object
Gets the color dark olive green.
306 307 308 |
# File 'lib/ruby_client/RgbColor.rb', line 306 def self.dark_olive_green RgbColor.create_rgb_color("DarkOliveGreen") end |
.dark_orange ⇒ Object
Gets the color dark orange.
313 314 315 |
# File 'lib/ruby_client/RgbColor.rb', line 313 def self.dark_orange RgbColor.create_rgb_color("DarkOrange") end |
.dark_orchid ⇒ Object
Gets the color dark orchid.
320 321 322 |
# File 'lib/ruby_client/RgbColor.rb', line 320 def self.dark_orchid RgbColor.create_rgb_color("DarkOrchid") end |
.dark_red ⇒ Object
Gets the color dark red.
327 328 329 |
# File 'lib/ruby_client/RgbColor.rb', line 327 def self.dark_red RgbColor.create_rgb_color("DarkRed") end |
.dark_salmon ⇒ Object
Gets the color dark salmon.
334 335 336 |
# File 'lib/ruby_client/RgbColor.rb', line 334 def self.dark_salmon RgbColor.create_rgb_color("DarkSalmon") end |
.dark_sea_green ⇒ Object
Gets the color dark sea green.
341 342 343 |
# File 'lib/ruby_client/RgbColor.rb', line 341 def self.dark_sea_green RgbColor.create_rgb_color("DarkSeaGreen") end |
.dark_slate_blue ⇒ Object
Gets the color dark slate blue.
348 349 350 |
# File 'lib/ruby_client/RgbColor.rb', line 348 def self.dark_slate_blue RgbColor.create_rgb_color("DarkSlateBlue") end |
.dark_slate_gray ⇒ Object
Gets the color dark slate gray.
355 356 357 |
# File 'lib/ruby_client/RgbColor.rb', line 355 def self.dark_slate_gray RgbColor.create_rgb_color("DarkSlateGray") end |
.dark_turquoise ⇒ Object
Gets the color dark turquoise.
362 363 364 |
# File 'lib/ruby_client/RgbColor.rb', line 362 def self.dark_turquoise RgbColor.create_rgb_color("DarkTurquoise") end |
.dark_violet ⇒ Object
Gets the color dark violet.
369 370 371 |
# File 'lib/ruby_client/RgbColor.rb', line 369 def self.dark_violet RgbColor.create_rgb_color("DarkViolet") end |
.deep_pink ⇒ Object
Gets the color deep pink.
376 377 378 |
# File 'lib/ruby_client/RgbColor.rb', line 376 def self.deep_pink RgbColor.create_rgb_color("DeepPink") end |
.deep_sky_blue ⇒ Object
Gets the color deep sky blue.
383 384 385 |
# File 'lib/ruby_client/RgbColor.rb', line 383 def self.deep_sky_blue RgbColor.create_rgb_color("DeepSkyBlue") end |
.dim_gray ⇒ Object
Gets the color dim gray.
89 90 91 |
# File 'lib/ruby_client/RgbColor.rb', line 89 def self.dim_gray RgbColor.create_rgb_color("DimGray") end |
.dodger_blue ⇒ Object
Gets the color dodger blue.
390 391 392 |
# File 'lib/ruby_client/RgbColor.rb', line 390 def self.dodger_blue RgbColor.create_rgb_color("DodgerBlue") end |
.feldspar ⇒ Object
Gets the color feldspar.
397 398 399 |
# File 'lib/ruby_client/RgbColor.rb', line 397 def self.feldspar RgbColor.create_rgb_color("Feldspar") end |
.fire_brick ⇒ Object
Gets the color fire brick.
404 405 406 |
# File 'lib/ruby_client/RgbColor.rb', line 404 def self.fire_brick RgbColor.create_rgb_color("FireBrick") end |
.floral_white ⇒ Object
Gets the color floral white.
411 412 413 |
# File 'lib/ruby_client/RgbColor.rb', line 411 def self.floral_white RgbColor.create_rgb_color("FloralWhite") end |
.forest_green ⇒ Object
Gets the color forest green.
418 419 420 |
# File 'lib/ruby_client/RgbColor.rb', line 418 def self.forest_green RgbColor.create_rgb_color("ForestGreen") end |
.fuchsia ⇒ Object
Gets the color fuchsia.
425 426 427 |
# File 'lib/ruby_client/RgbColor.rb', line 425 def self.fuchsia RgbColor.create_rgb_color("Fuchsia") end |
.gainsboro ⇒ Object
Gets the color gainsboro.
775 776 777 |
# File 'lib/ruby_client/RgbColor.rb', line 775 def self.gainsboro RgbColor.create_rgb_color("Gainsboro") end |
.ghost_white ⇒ Object
Gets the color ghost white.
432 433 434 |
# File 'lib/ruby_client/RgbColor.rb', line 432 def self.ghost_white RgbColor.create_rgb_color("GhostWhite") end |
.gold ⇒ Object
Gets the color gold.
439 440 441 |
# File 'lib/ruby_client/RgbColor.rb', line 439 def self.gold RgbColor.create_rgb_color("Gold") end |
.golden_rod ⇒ Object
Gets the color golden rod.
446 447 448 |
# File 'lib/ruby_client/RgbColor.rb', line 446 def self.golden_rod RgbColor.create_rgb_color("GoldenRod") end |
.gray ⇒ Object
Gets the color gray.
82 83 84 |
# File 'lib/ruby_client/RgbColor.rb', line 82 def self.gray RgbColor.create_rgb_color("Gray") end |
.green ⇒ Object
Gets the color green.
54 55 56 |
# File 'lib/ruby_client/RgbColor.rb', line 54 def self.green RgbColor.create_rgb_color("Green") end |
.green_yellow ⇒ Object
Gets the color green yellow.
453 454 455 |
# File 'lib/ruby_client/RgbColor.rb', line 453 def self.green_yellow RgbColor.create_rgb_color("GreenYellow") end |
.honey_dew ⇒ Object
Gets the color honey dew.
460 461 462 |
# File 'lib/ruby_client/RgbColor.rb', line 460 def self.honey_dew RgbColor.create_rgb_color("HoneyDew") end |
.hot_pink ⇒ Object
Gets the color hot pink.
467 468 469 |
# File 'lib/ruby_client/RgbColor.rb', line 467 def self.hot_pink RgbColor.create_rgb_color("HotPink") end |
.indian_red ⇒ Object
Gets the color indian red.
474 475 476 |
# File 'lib/ruby_client/RgbColor.rb', line 474 def self.indian_red RgbColor.create_rgb_color("IndianRed") end |
.indigo ⇒ Object
Gets the color indigo.
481 482 483 |
# File 'lib/ruby_client/RgbColor.rb', line 481 def self.indigo RgbColor.create_rgb_color("Indigo") end |
.ivory ⇒ Object
Gets the color ivory.
488 489 490 |
# File 'lib/ruby_client/RgbColor.rb', line 488 def self.ivory RgbColor.create_rgb_color("Ivory") end |
.khaki ⇒ Object
Gets the color khaki.
495 496 497 |
# File 'lib/ruby_client/RgbColor.rb', line 495 def self.khaki RgbColor.create_rgb_color("Khaki") end |
.lavender ⇒ Object
Gets the color lavender.
502 503 504 |
# File 'lib/ruby_client/RgbColor.rb', line 502 def self.lavender RgbColor.create_rgb_color("Lavender") end |
.lavender_blush ⇒ Object
Gets the color lavender blush.
509 510 511 |
# File 'lib/ruby_client/RgbColor.rb', line 509 def self.lavender_blush RgbColor.create_rgb_color("LavenderBlush") end |
.lawn_green ⇒ Object
Gets the color lawn Green.
516 517 518 |
# File 'lib/ruby_client/RgbColor.rb', line 516 def self.lawn_green RgbColor.create_rgb_color("LawnGreen") end |
.lemon_chiffon ⇒ Object
Gets the color lemon chiffon.
523 524 525 |
# File 'lib/ruby_client/RgbColor.rb', line 523 def self.lemon_chiffon RgbColor.create_rgb_color("LemonChiffon") end |
.light_blue ⇒ Object
Gets the color light blue.
530 531 532 |
# File 'lib/ruby_client/RgbColor.rb', line 530 def self.light_blue RgbColor.create_rgb_color("LightBlue") end |
.light_coral ⇒ Object
Gets the color light coral.
537 538 539 |
# File 'lib/ruby_client/RgbColor.rb', line 537 def self.light_coral RgbColor.create_rgb_color("LightCoral") end |
.light_cyan ⇒ Object
Gets the color light cyan.
544 545 546 |
# File 'lib/ruby_client/RgbColor.rb', line 544 def self.light_cyan RgbColor.create_rgb_color("LightCyan") end |
.light_golden_rod_yellow ⇒ Object
Gets the color light golden rod yellow.
551 552 553 |
# File 'lib/ruby_client/RgbColor.rb', line 551 def self.light_golden_rod_yellow RgbColor.create_rgb_color("LightGoldenRodYellow") end |
.light_green ⇒ Object
Gets the color light green.
565 566 567 |
# File 'lib/ruby_client/RgbColor.rb', line 565 def self.light_green RgbColor.create_rgb_color("LightGreen") end |
.light_grey ⇒ Object
Gets the color light grey.
558 559 560 |
# File 'lib/ruby_client/RgbColor.rb', line 558 def self.light_grey RgbColor.create_rgb_color("LightGrey") end |
.light_pink ⇒ Object
Gets the color light pink.
572 573 574 |
# File 'lib/ruby_client/RgbColor.rb', line 572 def self.light_pink RgbColor.create_rgb_color("LightPink") end |
.light_salmon ⇒ Object
Gets the color light salmon.
579 580 581 |
# File 'lib/ruby_client/RgbColor.rb', line 579 def self.light_salmon RgbColor.create_rgb_color("LightSalmon") end |
.light_sea_green ⇒ Object
Gets the color light sea green.
586 587 588 |
# File 'lib/ruby_client/RgbColor.rb', line 586 def self.light_sea_green RgbColor.create_rgb_color("LightSeaGreen") end |
.light_sky_blue ⇒ Object
Gets the color light sky blue.
593 594 595 |
# File 'lib/ruby_client/RgbColor.rb', line 593 def self.light_sky_blue RgbColor.create_rgb_color("LightSkyBlue") end |
.light_slate_blue ⇒ Object
Gets the color light slate blue.
600 601 602 |
# File 'lib/ruby_client/RgbColor.rb', line 600 def self.light_slate_blue RgbColor.create_rgb_color("LightSlateBlue") end |
.light_slate_gray ⇒ Object
Gets the color light slate gray.
607 608 609 |
# File 'lib/ruby_client/RgbColor.rb', line 607 def self.light_slate_gray RgbColor.create_rgb_color("LightSlateGray") end |
.light_steel_blue ⇒ Object
Gets the color light steel blue.
614 615 616 |
# File 'lib/ruby_client/RgbColor.rb', line 614 def self.light_steel_blue RgbColor.create_rgb_color("LightSteelBlue") end |
.light_yellow ⇒ Object
Gets the color light yellow.
621 622 623 |
# File 'lib/ruby_client/RgbColor.rb', line 621 def self.light_yellow RgbColor.create_rgb_color("LightYellow") end |
.lime ⇒ Object
Gets the color lime.
103 104 105 |
# File 'lib/ruby_client/RgbColor.rb', line 103 def self.lime RgbColor.create_rgb_color("Lime") end |
.lime_green ⇒ Object
Gets the color lime green.
628 629 630 |
# File 'lib/ruby_client/RgbColor.rb', line 628 def self.lime_green RgbColor.create_rgb_color("LimeGreen") end |
.linen ⇒ Object
Gets the color linen.
635 636 637 |
# File 'lib/ruby_client/RgbColor.rb', line 635 def self.linen RgbColor.create_rgb_color("Linen") end |
.magenta ⇒ Object
Gets the color magenta.
131 132 133 |
# File 'lib/ruby_client/RgbColor.rb', line 131 def self.magenta RgbColor.create_rgb_color("Magenta") end |
.maroon ⇒ Object
Gets the color maroon.
642 643 644 |
# File 'lib/ruby_client/RgbColor.rb', line 642 def self.maroon RgbColor.create_rgb_color("Maroon") end |
.medium_aqua_marine ⇒ Object
Gets the color medium aqua marine.
649 650 651 |
# File 'lib/ruby_client/RgbColor.rb', line 649 def self.medium_aqua_marine RgbColor.create_rgb_color("MediumAquaMarine") end |
.medium_blue ⇒ Object
Gets the color medium blue.
656 657 658 |
# File 'lib/ruby_client/RgbColor.rb', line 656 def self.medium_blue RgbColor.create_rgb_color("MediumBlue") end |
.medium_orchid ⇒ Object
Gets the color medium orchid.
663 664 665 |
# File 'lib/ruby_client/RgbColor.rb', line 663 def self.medium_orchid RgbColor.create_rgb_color("MediumOrchid") end |
.medium_purple ⇒ Object
Gets the color medium purple.
670 671 672 |
# File 'lib/ruby_client/RgbColor.rb', line 670 def self.medium_purple RgbColor.create_rgb_color("MediumPurple") end |
.medium_sea_green ⇒ Object
Gets the color medium sea green.
677 678 679 |
# File 'lib/ruby_client/RgbColor.rb', line 677 def self.medium_sea_green RgbColor.create_rgb_color("MediumSeaGreen") end |
.medium_slate_blue ⇒ Object
Gets the color medium slate blue.
684 685 686 |
# File 'lib/ruby_client/RgbColor.rb', line 684 def self.medium_slate_blue RgbColor.create_rgb_color("MediumSlateBlue") end |
.medium_spring_green ⇒ Object
Gets the color medium spring green.
691 692 693 |
# File 'lib/ruby_client/RgbColor.rb', line 691 def self.medium_spring_green RgbColor.create_rgb_color("MediumSpringGreen") end |
.medium_turquoise ⇒ Object
Gets the color medium turquoise.
698 699 700 |
# File 'lib/ruby_client/RgbColor.rb', line 698 def self.medium_turquoise RgbColor.create_rgb_color("MediumTurquoise") end |
.medium_violet_red ⇒ Object
Gets the color medium violet red.
705 706 707 |
# File 'lib/ruby_client/RgbColor.rb', line 705 def self.medium_violet_red RgbColor.create_rgb_color("MediumVioletRed") end |
.midnight_blue ⇒ Object
Gets the color midnight blue.
712 713 714 |
# File 'lib/ruby_client/RgbColor.rb', line 712 def self.midnight_blue RgbColor.create_rgb_color("MidnightBlue") end |
.mint_cream ⇒ Object
Gets the color mint cream.
719 720 721 |
# File 'lib/ruby_client/RgbColor.rb', line 719 def self.mint_cream RgbColor.create_rgb_color("MintCream") end |
.misty_rose ⇒ Object
Gets the color misty rose.
726 727 728 |
# File 'lib/ruby_client/RgbColor.rb', line 726 def self.misty_rose RgbColor.create_rgb_color("MistyRose") end |
.moccasin ⇒ Object
Gets the color moccasin.
733 734 735 |
# File 'lib/ruby_client/RgbColor.rb', line 733 def self.moccasin RgbColor.create_rgb_color("Moccasin") end |
.navajo_white ⇒ Object
Gets the color navajo white.
740 741 742 |
# File 'lib/ruby_client/RgbColor.rb', line 740 def self.navajo_white RgbColor.create_rgb_color("NavajoWhite") end |
.navy ⇒ Object
Gets the color navy.
747 748 749 |
# File 'lib/ruby_client/RgbColor.rb', line 747 def self.navy RgbColor.create_rgb_color("Navy") end |
.old_lace ⇒ Object
Gets the color old lace.
754 755 756 |
# File 'lib/ruby_client/RgbColor.rb', line 754 def self.old_lace RgbColor.create_rgb_color("OldLace") end |
.olive ⇒ Object
Gets the color olive.
761 762 763 |
# File 'lib/ruby_client/RgbColor.rb', line 761 def self.olive RgbColor.create_rgb_color("Olive") end |
.olive_drab ⇒ Object
Gets the color olive drab.
768 769 770 |
# File 'lib/ruby_client/RgbColor.rb', line 768 def self.olive_drab RgbColor.create_rgb_color("OliveDrab") end |
.orange ⇒ Object
Gets the color orange.
782 783 784 |
# File 'lib/ruby_client/RgbColor.rb', line 782 def self.orange RgbColor.create_rgb_color("Orange") end |
.orange_red ⇒ Object
Gets the color orange red.
789 790 791 |
# File 'lib/ruby_client/RgbColor.rb', line 789 def self.orange_red RgbColor.create_rgb_color("OrangeRed") end |
.orchid ⇒ Object
Gets the color orchid.
796 797 798 |
# File 'lib/ruby_client/RgbColor.rb', line 796 def self.orchid RgbColor.create_rgb_color("Orchid") end |
.pale_golden_rod ⇒ Object
Gets the color pale golden rod.
803 804 805 |
# File 'lib/ruby_client/RgbColor.rb', line 803 def self.pale_golden_rod RgbColor.create_rgb_color("PaleGoldenRod") end |
.pale_green ⇒ Object
Gets the color pale green.
810 811 812 |
# File 'lib/ruby_client/RgbColor.rb', line 810 def self.pale_green RgbColor.create_rgb_color("PaleGreen") end |
.pale_turquoise ⇒ Object
Gets the color pale turquoise.
817 818 819 |
# File 'lib/ruby_client/RgbColor.rb', line 817 def self.pale_turquoise RgbColor.create_rgb_color("PaleTurquoise") end |
.pale_violet_red ⇒ Object
Gets the color pale violet red.
824 825 826 |
# File 'lib/ruby_client/RgbColor.rb', line 824 def self.pale_violet_red RgbColor.create_rgb_color("PaleVioletRed") end |
.papaya_whip ⇒ Object
Gets the color papaya whip.
831 832 833 |
# File 'lib/ruby_client/RgbColor.rb', line 831 def self.papaya_whip RgbColor.create_rgb_color("PapayaWhip") end |
.peach_puff ⇒ Object
Gets the color peach puff.
838 839 840 |
# File 'lib/ruby_client/RgbColor.rb', line 838 def self.peach_puff RgbColor.create_rgb_color("PeachPuff") end |
.peru ⇒ Object
Gets the color peru.
845 846 847 |
# File 'lib/ruby_client/RgbColor.rb', line 845 def self.peru RgbColor.create_rgb_color("Peru") end |
.pink ⇒ Object
Gets the color pink.
852 853 854 |
# File 'lib/ruby_client/RgbColor.rb', line 852 def self.pink RgbColor.create_rgb_color("Pink") end |
.plum ⇒ Object
Gets the color plum.
859 860 861 |
# File 'lib/ruby_client/RgbColor.rb', line 859 def self.plum RgbColor.create_rgb_color("Plum") end |
.powder_blue ⇒ Object
Gets the color powder blue.
866 867 868 |
# File 'lib/ruby_client/RgbColor.rb', line 866 def self.powder_blue RgbColor.create_rgb_color("PowderBlue") end |
.purple ⇒ Object
Gets the color purple.
117 118 119 |
# File 'lib/ruby_client/RgbColor.rb', line 117 def self.purple RgbColor.create_rgb_color("Purple") end |
.red ⇒ Object
Gets the color red.
40 41 42 |
# File 'lib/ruby_client/RgbColor.rb', line 40 def self.red RgbColor.create_rgb_color("Red") end |
.rosy_brown ⇒ Object
Gets the color rosy brown.
873 874 875 |
# File 'lib/ruby_client/RgbColor.rb', line 873 def self.rosy_brown RgbColor.create_rgb_color("RosyBrown") end |
.royal_blue ⇒ Object
Gets the color royal blue.
880 881 882 |
# File 'lib/ruby_client/RgbColor.rb', line 880 def self.royal_blue RgbColor.create_rgb_color("RoyalBlue") end |
.saddle_brown ⇒ Object
Gets the color saddle brown.
887 888 889 |
# File 'lib/ruby_client/RgbColor.rb', line 887 def self.saddle_brown RgbColor.create_rgb_color("SaddleBrown") end |
.salmon ⇒ Object
Gets the color salmon.
894 895 896 |
# File 'lib/ruby_client/RgbColor.rb', line 894 def self.salmon RgbColor.create_rgb_color("Salmon") end |
.sandy_brown ⇒ Object
Gets the color sandy brown.
901 902 903 |
# File 'lib/ruby_client/RgbColor.rb', line 901 def self.sandy_brown RgbColor.create_rgb_color("SandyBrown") end |
.sea_green ⇒ Object
Gets the color sea green.
908 909 910 |
# File 'lib/ruby_client/RgbColor.rb', line 908 def self.sea_green RgbColor.create_rgb_color("SeaGreen") end |
.sea_shell ⇒ Object
Gets the color sea shell.
915 916 917 |
# File 'lib/ruby_client/RgbColor.rb', line 915 def self.sea_shell RgbColor.create_rgb_color("SeaShell") end |
.sienna ⇒ Object
Gets the color sienna.
922 923 924 |
# File 'lib/ruby_client/RgbColor.rb', line 922 def self.sienna RgbColor.create_rgb_color("Sienna") end |
.silver ⇒ Object
Gets the color silver.
68 69 70 |
# File 'lib/ruby_client/RgbColor.rb', line 68 def self.silver RgbColor.create_rgb_color("Silver") end |
.sky_blue ⇒ Object
Gets the color sky blue.
929 930 931 |
# File 'lib/ruby_client/RgbColor.rb', line 929 def self.sky_blue RgbColor.create_rgb_color("SkyBlue") end |
.slate_blue ⇒ Object
Gets the color slate blue.
936 937 938 |
# File 'lib/ruby_client/RgbColor.rb', line 936 def self.slate_blue RgbColor.create_rgb_color("SlateBlue") end |
.slate_gray ⇒ Object
Gets the color slate gray.
943 944 945 |
# File 'lib/ruby_client/RgbColor.rb', line 943 def self.slate_gray RgbColor.create_rgb_color("SlateGray") end |
.snow ⇒ Object
Gets the color snow.
950 951 952 |
# File 'lib/ruby_client/RgbColor.rb', line 950 def self.snow RgbColor.create_rgb_color("Snow") end |
.spring_green ⇒ Object
Gets the color spring green.
957 958 959 |
# File 'lib/ruby_client/RgbColor.rb', line 957 def self.spring_green RgbColor.create_rgb_color("SpringGreen") end |
.steel_blue ⇒ Object
Gets the color steel blue.
964 965 966 |
# File 'lib/ruby_client/RgbColor.rb', line 964 def self.steel_blue RgbColor.create_rgb_color("SteelBlue") end |
.tan ⇒ Object
Gets the color Tan.
971 972 973 |
# File 'lib/ruby_client/RgbColor.rb', line 971 def self.tan RgbColor.create_rgb_color("Tan") end |
.teal ⇒ Object
Gets the color teal.
978 979 980 |
# File 'lib/ruby_client/RgbColor.rb', line 978 def self.teal RgbColor.create_rgb_color("Teal") end |
.thistle ⇒ Object
Gets the color thistle.
985 986 987 |
# File 'lib/ruby_client/RgbColor.rb', line 985 def self.thistle RgbColor.create_rgb_color("Thistle") end |
.tomato ⇒ Object
Gets the color tomato.
992 993 994 |
# File 'lib/ruby_client/RgbColor.rb', line 992 def self.tomato RgbColor.create_rgb_color("Tomato") end |
.turquoise ⇒ Object
Gets the color turquoise.
999 1000 1001 |
# File 'lib/ruby_client/RgbColor.rb', line 999 def self.turquoise RgbColor.create_rgb_color("Turquoise") end |
.violet ⇒ Object
Gets the color violet.
1006 1007 1008 |
# File 'lib/ruby_client/RgbColor.rb', line 1006 def self.violet RgbColor.create_rgb_color("Violet") end |
.violet_red ⇒ Object
Gets the color violet red.
1013 1014 1015 |
# File 'lib/ruby_client/RgbColor.rb', line 1013 def self.violet_red RgbColor.create_rgb_color("VioletRed") end |
.wheat ⇒ Object
Gets the color wheat.
1020 1021 1022 |
# File 'lib/ruby_client/RgbColor.rb', line 1020 def self.wheat RgbColor.create_rgb_color("Wheat") end |
.white ⇒ Object
Gets the color white.
96 97 98 |
# File 'lib/ruby_client/RgbColor.rb', line 96 def self.white RgbColor.create_rgb_color("White") end |
.white_smoke ⇒ Object
Gets the color white smoke.
1027 1028 1029 |
# File 'lib/ruby_client/RgbColor.rb', line 1027 def self.white_smoke RgbColor.create_rgb_color("WhiteSmoke") end |
.yellow ⇒ Object
Gets the color yellow.
138 139 140 |
# File 'lib/ruby_client/RgbColor.rb', line 138 def self.yellow RgbColor.create_rgb_color("Yellow") end |
.yellow_green ⇒ Object
Gets the color yellow green.
1034 1035 1036 |
# File 'lib/ruby_client/RgbColor.rb', line 1034 def self.yellow_green RgbColor.create_rgb_color("YellowGreen") end |
Instance Method Details
#to_json(_options = {}) ⇒ Object
1038 1039 1040 1041 1042 1043 1044 1045 1046 |
# File 'lib/ruby_client/RgbColor.rb', line 1038 def to_json( = {}) # json_array=array() if @_color_string != nil @_color_string else "rgb(#{@red},#{@green},#{@blue})" end end |