Class: DynamicPDFApi::RgbColor

Inherits:
Color
  • Object
show all
Defined in:
lib/ruby_client/RgbColor.rb

Overview

Represents an RGB color.

Direct Known Subclasses

WebColor

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(red = 0, green = 0, blue = 0) ⇒ RgbColor

Initializes a new instance of the RgbColor class.

Parameters:

  • red (float) (defaults to: 0)

    The red intensity.

  • green (float) (defaults to: 0)

    The green intensity.

  • blue (float) (defaults to: 0)

    The blue intensity.



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_stringObject

private string colorString



10
11
12
# File 'lib/ruby_client/RgbColor.rb', line 10

def _color_string
  @_color_string
end

Class Method Details

.alice_blueObject

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_whiteObject

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

.aquaObject

Gets the color aqua.



110
111
112
# File 'lib/ruby_client/RgbColor.rb', line 110

def self.aqua
  RgbColor.create_rgb_color("Aqua")
end

.aquamarineObject

Gets the color aquamarine.



159
160
161
# File 'lib/ruby_client/RgbColor.rb', line 159

def self.aquamarine
  RgbColor.create_rgb_color("Aquamarine")
end

.azureObject

Gets the color azure.



166
167
168
# File 'lib/ruby_client/RgbColor.rb', line 166

def self.azure
  RgbColor.create_rgb_color("Azure")
end

.beigeObject

Gets the color beige.



173
174
175
# File 'lib/ruby_client/RgbColor.rb', line 173

def self.beige
  RgbColor.create_rgb_color("Beige")
end

.bisqueObject

Gets the color bisque.



180
181
182
# File 'lib/ruby_client/RgbColor.rb', line 180

def self.bisque
  RgbColor.create_rgb_color("Bisque")
end

.blackObject

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_almondObject

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

.blueObject

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_violetObject

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

.brownObject

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_woodObject

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_blueObject

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

.chartreuseObject

Gets the color chartreuse.



222
223
224
# File 'lib/ruby_client/RgbColor.rb', line 222

def self.chartreuse
  RgbColor.create_rgb_color("Chartreuse")
end

.chocolateObject

Gets the color chocolate.



229
230
231
# File 'lib/ruby_client/RgbColor.rb', line 229

def self.chocolate
  RgbColor.create_rgb_color("Chocolate")
end

.coralObject

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_blueObject

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

.cornsilkObject

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

.crimsonObject

Gets the color crimson.



257
258
259
# File 'lib/ruby_client/RgbColor.rb', line 257

def self.crimson
  RgbColor.create_rgb_color("Crimson")
end

.cyanObject

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_blueObject

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_cyanObject

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_rodObject

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_grayObject

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_greenObject

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_khakiObject

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_magentaObject

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_greenObject

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_orangeObject

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_orchidObject

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_redObject

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_salmonObject

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_greenObject

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_blueObject

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_grayObject

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_turquoiseObject

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_violetObject

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_pinkObject

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_blueObject

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_grayObject

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_blueObject

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

.feldsparObject

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_brickObject

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_whiteObject

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_greenObject

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

.fuchsiaObject

Gets the color fuchsia.



425
426
427
# File 'lib/ruby_client/RgbColor.rb', line 425

def self.fuchsia
  RgbColor.create_rgb_color("Fuchsia")
end

.gainsboroObject

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_whiteObject

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

.goldObject

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_rodObject

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

.grayObject

Gets the color gray.



82
83
84
# File 'lib/ruby_client/RgbColor.rb', line 82

def self.gray
  RgbColor.create_rgb_color("Gray")
end

.greenObject

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_yellowObject

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_dewObject

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_pinkObject

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_redObject

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

.indigoObject

Gets the color indigo.



481
482
483
# File 'lib/ruby_client/RgbColor.rb', line 481

def self.indigo
  RgbColor.create_rgb_color("Indigo")
end

.ivoryObject

Gets the color ivory.



488
489
490
# File 'lib/ruby_client/RgbColor.rb', line 488

def self.ivory
  RgbColor.create_rgb_color("Ivory")
end

.khakiObject

Gets the color khaki.



495
496
497
# File 'lib/ruby_client/RgbColor.rb', line 495

def self.khaki
  RgbColor.create_rgb_color("Khaki")
end

.lavenderObject

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_blushObject

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_greenObject

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_chiffonObject

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_blueObject

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_coralObject

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_cyanObject

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_yellowObject

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_greenObject

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_greyObject

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_pinkObject

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_salmonObject

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_greenObject

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_blueObject

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_blueObject

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_grayObject

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_blueObject

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_yellowObject

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

.limeObject

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_greenObject

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

.linenObject

Gets the color linen.



635
636
637
# File 'lib/ruby_client/RgbColor.rb', line 635

def self.linen
  RgbColor.create_rgb_color("Linen")
end

.magentaObject

Gets the color magenta.



131
132
133
# File 'lib/ruby_client/RgbColor.rb', line 131

def self.magenta
  RgbColor.create_rgb_color("Magenta")
end

.maroonObject

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_marineObject

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_blueObject

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_orchidObject

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_purpleObject

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_greenObject

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_blueObject

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_greenObject

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_turquoiseObject

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_redObject

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_blueObject

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_creamObject

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_roseObject

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

.moccasinObject

Gets the color moccasin.



733
734
735
# File 'lib/ruby_client/RgbColor.rb', line 733

def self.moccasin
  RgbColor.create_rgb_color("Moccasin")
end

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

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_laceObject

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

.oliveObject

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_drabObject

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

.orangeObject

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_redObject

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

.orchidObject

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_rodObject

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_greenObject

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_turquoiseObject

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_redObject

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_whipObject

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_puffObject

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

.peruObject

Gets the color peru.



845
846
847
# File 'lib/ruby_client/RgbColor.rb', line 845

def self.peru
  RgbColor.create_rgb_color("Peru")
end

.pinkObject

Gets the color pink.



852
853
854
# File 'lib/ruby_client/RgbColor.rb', line 852

def self.pink
  RgbColor.create_rgb_color("Pink")
end

.plumObject

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_blueObject

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

.purpleObject

Gets the color purple.



117
118
119
# File 'lib/ruby_client/RgbColor.rb', line 117

def self.purple
  RgbColor.create_rgb_color("Purple")
end

.redObject

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_brownObject

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_blueObject

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_brownObject

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

.salmonObject

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_brownObject

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_greenObject

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_shellObject

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

.siennaObject

Gets the color sienna.



922
923
924
# File 'lib/ruby_client/RgbColor.rb', line 922

def self.sienna
  RgbColor.create_rgb_color("Sienna")
end

.silverObject

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_blueObject

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_blueObject

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_grayObject

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

.snowObject

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_greenObject

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_blueObject

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

.tanObject

Gets the color Tan.



971
972
973
# File 'lib/ruby_client/RgbColor.rb', line 971

def self.tan
  RgbColor.create_rgb_color("Tan")
end

.tealObject

Gets the color teal.



978
979
980
# File 'lib/ruby_client/RgbColor.rb', line 978

def self.teal
  RgbColor.create_rgb_color("Teal")
end

.thistleObject

Gets the color thistle.



985
986
987
# File 'lib/ruby_client/RgbColor.rb', line 985

def self.thistle
  RgbColor.create_rgb_color("Thistle")
end

.tomatoObject

Gets the color tomato.



992
993
994
# File 'lib/ruby_client/RgbColor.rb', line 992

def self.tomato
  RgbColor.create_rgb_color("Tomato")
end

.turquoiseObject

Gets the color turquoise.



999
1000
1001
# File 'lib/ruby_client/RgbColor.rb', line 999

def self.turquoise
  RgbColor.create_rgb_color("Turquoise")
end

.violetObject

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_redObject

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

.wheatObject

Gets the color wheat.



1020
1021
1022
# File 'lib/ruby_client/RgbColor.rb', line 1020

def self.wheat
  RgbColor.create_rgb_color("Wheat")
end

.whiteObject

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_smokeObject

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

.yellowObject

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_greenObject

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(_options = {})
  # json_array=array()

  if @_color_string != nil
    @_color_string
  else
    "rgb(#{@red},#{@green},#{@blue})"
  end
end