dynamicpdf_api 1.0.0.pre.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/ruby_client/Action.rb +15 -0
- data/lib/ruby_client/AdditionalResource.rb +113 -0
- data/lib/ruby_client/AdditionalResourceType.rb +27 -0
- data/lib/ruby_client/Aes128Security.rb +70 -0
- data/lib/ruby_client/Aes256Security.rb +70 -0
- data/lib/ruby_client/Align.rb +21 -0
- data/lib/ruby_client/ButtonFieldInformation.rb +48 -0
- data/lib/ruby_client/ButtonFieldType.rb +16 -0
- data/lib/ruby_client/ChoiceFieldInformation.rb +52 -0
- data/lib/ruby_client/ChoiceFieldType.rb +16 -0
- data/lib/ruby_client/CmykColor.rb +47 -0
- data/lib/ruby_client/Color.rb +12 -0
- data/lib/ruby_client/ColorSpaceType.rb +36 -0
- data/lib/ruby_client/ConverterInput.rb +100 -0
- data/lib/ruby_client/DlexInput.rb +61 -0
- data/lib/ruby_client/DlexLayout.rb +135 -0
- data/lib/ruby_client/DlexResource.rb +40 -0
- data/lib/ruby_client/Elements/AztecBarcodeElement.rb +113 -0
- data/lib/ruby_client/Elements/AztecSymbolSize.rb +206 -0
- data/lib/ruby_client/Elements/BarcodeElement.rb +37 -0
- data/lib/ruby_client/Elements/Code11BarcodeElement.rb +77 -0
- data/lib/ruby_client/Elements/Code128BarcodeElement.rb +105 -0
- data/lib/ruby_client/Elements/Code25BarcodeElement.rb +75 -0
- data/lib/ruby_client/Elements/Code39BarcodeElement.rb +75 -0
- data/lib/ruby_client/Elements/Code93BarcodeElement.rb +75 -0
- data/lib/ruby_client/Elements/Compaction.rb +26 -0
- data/lib/ruby_client/Elements/DataMatrixBarcodeElement.rb +95 -0
- data/lib/ruby_client/Elements/DataMatrixEncodingType.rb +56 -0
- data/lib/ruby_client/Elements/DataMatrixFunctionCharacter.rb +31 -0
- data/lib/ruby_client/Elements/DataMatrixSymbolSize.rb +161 -0
- data/lib/ruby_client/Elements/Dim2BarcodeElement.rb +28 -0
- data/lib/ruby_client/Elements/Element.rb +46 -0
- data/lib/ruby_client/Elements/ElementPlacement.rb +36 -0
- data/lib/ruby_client/Elements/ElementType.rb +96 -0
- data/lib/ruby_client/Elements/ErrorCorrection.rb +56 -0
- data/lib/ruby_client/Elements/Gs1DataBarBarcodeElement.rb +76 -0
- data/lib/ruby_client/Elements/Gs1DataBarType.rb +22 -0
- data/lib/ruby_client/Elements/Iata25BarcodeElement.rb +83 -0
- data/lib/ruby_client/Elements/ImageElement.rb +108 -0
- data/lib/ruby_client/Elements/LineElement.rb +92 -0
- data/lib/ruby_client/Elements/MsiBarcodeCheckDigitMode.rb +31 -0
- data/lib/ruby_client/Elements/MsiBarcodeElement.rb +79 -0
- data/lib/ruby_client/Elements/PageNumberingElement.rb +91 -0
- data/lib/ruby_client/Elements/Pdf417BarcodeElement.rb +112 -0
- data/lib/ruby_client/Elements/QrCodeElement.rb +77 -0
- data/lib/ruby_client/Elements/QrCodeFnc1.rb +22 -0
- data/lib/ruby_client/Elements/RectangleElement.rb +109 -0
- data/lib/ruby_client/Elements/StackedGs1DataBarBarcodeElement.rb +90 -0
- data/lib/ruby_client/Elements/StackedGs1DataBarType.rb +23 -0
- data/lib/ruby_client/Elements/TextBarcodeElement.rb +48 -0
- data/lib/ruby_client/Elements/TextElement.rb +83 -0
- data/lib/ruby_client/Elements/ValueType.rb +16 -0
- data/lib/ruby_client/EncryptDocumentComponents.rb +16 -0
- data/lib/ruby_client/EndPointException.rb +7 -0
- data/lib/ruby_client/Endpoint.rb +38 -0
- data/lib/ruby_client/EndpointResource.rb +7 -0
- data/lib/ruby_client/ExcelInput.rb +49 -0
- data/lib/ruby_client/ExcelResource.rb +79 -0
- data/lib/ruby_client/Font.rb +276 -0
- data/lib/ruby_client/FontInformation.rb +9 -0
- data/lib/ruby_client/FontResource.rb +35 -0
- data/lib/ruby_client/FormField.rb +62 -0
- data/lib/ruby_client/FormFieldInformation.rb +45 -0
- data/lib/ruby_client/GoToAction.rb +53 -0
- data/lib/ruby_client/Grayscale.rb +41 -0
- data/lib/ruby_client/HtmlInput.rb +60 -0
- data/lib/ruby_client/HtmlResource.rb +34 -0
- data/lib/ruby_client/ImageInfo.rb +69 -0
- data/lib/ruby_client/ImageInformation.rb +57 -0
- data/lib/ruby_client/ImageInput.rb +150 -0
- data/lib/ruby_client/ImageResource.rb +89 -0
- data/lib/ruby_client/ImageResponse.rb +24 -0
- data/lib/ruby_client/Input.rb +53 -0
- data/lib/ruby_client/InputType.rb +41 -0
- data/lib/ruby_client/JsonResponse.rb +18 -0
- data/lib/ruby_client/LayoutDataResource.rb +48 -0
- data/lib/ruby_client/LineStyle.rb +79 -0
- data/lib/ruby_client/MergeOptions.rb +135 -0
- data/lib/ruby_client/MultiSelectListBoxInformation.rb +45 -0
- data/lib/ruby_client/Outline.rb +113 -0
- data/lib/ruby_client/OutlineList.rb +57 -0
- data/lib/ruby_client/OutlineStyle.rb +28 -0
- data/lib/ruby_client/OutputSize.rb +10 -0
- data/lib/ruby_client/PageInformation.rb +27 -0
- data/lib/ruby_client/PageInput.rb +152 -0
- data/lib/ruby_client/PageOrientation.rb +17 -0
- data/lib/ruby_client/PageSize.rb +127 -0
- data/lib/ruby_client/PageZoom.rb +33 -0
- data/lib/ruby_client/Pdf.rb +417 -0
- data/lib/ruby_client/PdfContent.rb +21 -0
- data/lib/ruby_client/PdfInfo.rb +68 -0
- data/lib/ruby_client/PdfInfoResponse.rb +27 -0
- data/lib/ruby_client/PdfInformation.rb +81 -0
- data/lib/ruby_client/PdfInput.rb +66 -0
- data/lib/ruby_client/PdfInstructions.rb +97 -0
- data/lib/ruby_client/PdfResource.rb +36 -0
- data/lib/ruby_client/PdfResponse.rb +23 -0
- data/lib/ruby_client/PdfText.rb +85 -0
- data/lib/ruby_client/PdfTextResponse.rb +27 -0
- data/lib/ruby_client/PdfXmp.rb +67 -0
- data/lib/ruby_client/PushButtonInformation.rb +21 -0
- data/lib/ruby_client/RC4128Security.rb +62 -0
- data/lib/ruby_client/Resource.rb +51 -0
- data/lib/ruby_client/ResourceType.rb +48 -0
- data/lib/ruby_client/Response.rb +39 -0
- data/lib/ruby_client/RgbColor.rb +1048 -0
- data/lib/ruby_client/Security.rb +73 -0
- data/lib/ruby_client/SecurityType.rb +23 -0
- data/lib/ruby_client/SignatureFieldInformation.rb +21 -0
- data/lib/ruby_client/Template.rb +46 -0
- data/lib/ruby_client/TextFieldInformation.rb +27 -0
- data/lib/ruby_client/TextReplace.rb +43 -0
- data/lib/ruby_client/UnitConverter.rb +111 -0
- data/lib/ruby_client/UrlAction.rb +31 -0
- data/lib/ruby_client/VAlign.rb +21 -0
- data/lib/ruby_client/WebColor.rb +18 -0
- data/lib/ruby_client/WordInput.rb +65 -0
- data/lib/ruby_client/WordResource.rb +82 -0
- data/lib/ruby_client/XmlResponse.rb +23 -0
- data/lib/ruby_client/version.rb +5 -0
- data/lib/ruby_client.rb +123 -0
- metadata +169 -0
@@ -0,0 +1,1048 @@
|
|
1
|
+
module DynamicPDFApi
|
2
|
+
require_relative "EndpointException"
|
3
|
+
require_relative "Color"
|
4
|
+
|
5
|
+
#
|
6
|
+
# Represents an RGB color.
|
7
|
+
#
|
8
|
+
class RgbColor < Color
|
9
|
+
# private string colorString
|
10
|
+
attr_accessor :_color_string
|
11
|
+
|
12
|
+
#
|
13
|
+
# Initializes a new instance of the RgbColor class.
|
14
|
+
#
|
15
|
+
# @param red [float] The red intensity.
|
16
|
+
# @param green [float] The green intensity.
|
17
|
+
# @param blue [float] The blue intensity.
|
18
|
+
#
|
19
|
+
def initialize(red = 0, green = 0, blue = 0)
|
20
|
+
super()
|
21
|
+
if red < 0.0 || red > 1.0 || green < 0.0 || green > 1.0 || blue < 0.0 || blue > 1.0
|
22
|
+
Raise "RGB values must be from 0.0 to 1.0."
|
23
|
+
end
|
24
|
+
|
25
|
+
@red = red
|
26
|
+
@green = green
|
27
|
+
@blue = blue
|
28
|
+
@_color_string = "rgb(#{red},#{green},#{blue})"
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.create_rgb_color(color_string = nil)
|
32
|
+
rgb_color = RgbColor.new
|
33
|
+
rgb_color._color_string = color_string
|
34
|
+
rgb_color
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# Gets the color red.
|
39
|
+
#
|
40
|
+
def self.red
|
41
|
+
RgbColor.create_rgb_color("Red")
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# Gets the color blue.
|
46
|
+
#
|
47
|
+
def self.blue
|
48
|
+
RgbColor.create_rgb_color("Blue")
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Gets the color green.
|
53
|
+
#
|
54
|
+
def self.green
|
55
|
+
RgbColor.create_rgb_color("Green")
|
56
|
+
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# Gets the color black.
|
60
|
+
#
|
61
|
+
def self.black
|
62
|
+
RgbColor.create_rgb_color("Black")
|
63
|
+
end
|
64
|
+
|
65
|
+
#
|
66
|
+
# Gets the color silver.
|
67
|
+
#
|
68
|
+
def self.silver
|
69
|
+
RgbColor.create_rgb_color("Silver")
|
70
|
+
end
|
71
|
+
|
72
|
+
#
|
73
|
+
# Gets the color dark gray.
|
74
|
+
#
|
75
|
+
def self.dark_gray
|
76
|
+
RgbColor.create_rgb_color("DarkGray")
|
77
|
+
end
|
78
|
+
|
79
|
+
#
|
80
|
+
# Gets the color gray.
|
81
|
+
#
|
82
|
+
def self.gray
|
83
|
+
RgbColor.create_rgb_color("Gray")
|
84
|
+
end
|
85
|
+
|
86
|
+
#
|
87
|
+
# Gets the color dim gray.
|
88
|
+
#
|
89
|
+
def self.dim_gray
|
90
|
+
RgbColor.create_rgb_color("DimGray")
|
91
|
+
end
|
92
|
+
|
93
|
+
#
|
94
|
+
# Gets the color white.
|
95
|
+
#
|
96
|
+
def self.white
|
97
|
+
RgbColor.create_rgb_color("White")
|
98
|
+
end
|
99
|
+
|
100
|
+
#
|
101
|
+
# Gets the color lime.
|
102
|
+
#
|
103
|
+
def self.lime
|
104
|
+
RgbColor.create_rgb_color("Lime")
|
105
|
+
end
|
106
|
+
|
107
|
+
#
|
108
|
+
# Gets the color aqua.
|
109
|
+
#
|
110
|
+
def self.aqua
|
111
|
+
RgbColor.create_rgb_color("Aqua")
|
112
|
+
end
|
113
|
+
|
114
|
+
#
|
115
|
+
# Gets the color purple.
|
116
|
+
#
|
117
|
+
def self.purple
|
118
|
+
RgbColor.create_rgb_color("Purple")
|
119
|
+
end
|
120
|
+
|
121
|
+
#
|
122
|
+
# Gets the color cyan.
|
123
|
+
#
|
124
|
+
def self.cyan
|
125
|
+
RgbColor.create_rgb_color("Cyan")
|
126
|
+
end
|
127
|
+
|
128
|
+
#
|
129
|
+
# Gets the color magenta.
|
130
|
+
#
|
131
|
+
def self.magenta
|
132
|
+
RgbColor.create_rgb_color("Magenta")
|
133
|
+
end
|
134
|
+
|
135
|
+
#
|
136
|
+
# Gets the color yellow.
|
137
|
+
#
|
138
|
+
def self.yellow
|
139
|
+
RgbColor.create_rgb_color("Yellow")
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Gets the color alice blue.
|
144
|
+
#
|
145
|
+
def self.alice_blue
|
146
|
+
RgbColor.create_rgb_color("AliceBlue")
|
147
|
+
end
|
148
|
+
|
149
|
+
#
|
150
|
+
# Gets the color antique white.
|
151
|
+
#
|
152
|
+
def self.antique_white
|
153
|
+
RgbColor.create_rgb_color("AntiqueWhite")
|
154
|
+
end
|
155
|
+
|
156
|
+
#
|
157
|
+
# Gets the color aquamarine.
|
158
|
+
#
|
159
|
+
def self.aquamarine
|
160
|
+
RgbColor.create_rgb_color("Aquamarine")
|
161
|
+
end
|
162
|
+
|
163
|
+
#
|
164
|
+
# Gets the color azure.
|
165
|
+
#
|
166
|
+
def self.azure
|
167
|
+
RgbColor.create_rgb_color("Azure")
|
168
|
+
end
|
169
|
+
|
170
|
+
#
|
171
|
+
# Gets the color beige.
|
172
|
+
#
|
173
|
+
def self.beige
|
174
|
+
RgbColor.create_rgb_color("Beige")
|
175
|
+
end
|
176
|
+
|
177
|
+
#
|
178
|
+
# Gets the color bisque.
|
179
|
+
#
|
180
|
+
def self.bisque
|
181
|
+
RgbColor.create_rgb_color("Bisque")
|
182
|
+
end
|
183
|
+
|
184
|
+
#
|
185
|
+
# Gets the color blanched almond.
|
186
|
+
#
|
187
|
+
def self.blanched_almond
|
188
|
+
RgbColor.create_rgb_color("BlanchedAlmond")
|
189
|
+
end
|
190
|
+
|
191
|
+
#
|
192
|
+
# Gets the color blue violet.
|
193
|
+
#
|
194
|
+
def self.blue_violet
|
195
|
+
RgbColor.create_rgb_color("BlueViolet")
|
196
|
+
end
|
197
|
+
|
198
|
+
#
|
199
|
+
# Gets the color brown.
|
200
|
+
#
|
201
|
+
def self.brown
|
202
|
+
RgbColor.create_rgb_color("Brown")
|
203
|
+
end
|
204
|
+
|
205
|
+
#
|
206
|
+
# Gets the color burly wood.
|
207
|
+
#
|
208
|
+
def self.burly_wood
|
209
|
+
RgbColor.create_rgb_color("BurlyWood")
|
210
|
+
end
|
211
|
+
|
212
|
+
#
|
213
|
+
# Gets the color cadet blue.
|
214
|
+
#
|
215
|
+
def self.cadet_blue
|
216
|
+
RgbColor.create_rgb_color("CadetBlue")
|
217
|
+
end
|
218
|
+
|
219
|
+
#
|
220
|
+
# Gets the color chartreuse.
|
221
|
+
#
|
222
|
+
def self.chartreuse
|
223
|
+
RgbColor.create_rgb_color("Chartreuse")
|
224
|
+
end
|
225
|
+
|
226
|
+
#
|
227
|
+
# Gets the color chocolate.
|
228
|
+
#
|
229
|
+
def self.chocolate
|
230
|
+
RgbColor.create_rgb_color("Chocolate")
|
231
|
+
end
|
232
|
+
|
233
|
+
#
|
234
|
+
# Gets the color coral.
|
235
|
+
#
|
236
|
+
def self.coral
|
237
|
+
RgbColor.create_rgb_color("Coral")
|
238
|
+
end
|
239
|
+
|
240
|
+
#
|
241
|
+
# Gets the color cornflower blue.
|
242
|
+
#
|
243
|
+
def self.cornflower_blue
|
244
|
+
RgbColor.create_rgb_color("CornflowerBlue")
|
245
|
+
end
|
246
|
+
|
247
|
+
#
|
248
|
+
# Gets the color cornsilk.
|
249
|
+
#
|
250
|
+
def self.cornsilk
|
251
|
+
RgbColor.create_rgb_color("Cornsilk")
|
252
|
+
end
|
253
|
+
|
254
|
+
#
|
255
|
+
# Gets the color crimson.
|
256
|
+
#
|
257
|
+
def self.crimson
|
258
|
+
RgbColor.create_rgb_color("Crimson")
|
259
|
+
end
|
260
|
+
|
261
|
+
#
|
262
|
+
# Gets the color dark blue.
|
263
|
+
#
|
264
|
+
def self.dark_blue
|
265
|
+
RgbColor.create_rgb_color("DarkBlue")
|
266
|
+
end
|
267
|
+
|
268
|
+
#
|
269
|
+
# Gets the color dark cyan.
|
270
|
+
#
|
271
|
+
def self.dark_cyan
|
272
|
+
RgbColor.create_rgb_color("DarkCyan")
|
273
|
+
end
|
274
|
+
|
275
|
+
#
|
276
|
+
# Gets the color dark golden rod.
|
277
|
+
#
|
278
|
+
def self.dark_golden_rod
|
279
|
+
RgbColor.create_rgb_color("DarkGoldenRod")
|
280
|
+
end
|
281
|
+
|
282
|
+
#
|
283
|
+
# Gets the color dark green.
|
284
|
+
#
|
285
|
+
def self.dark_green
|
286
|
+
RgbColor.create_rgb_color("DarkGreen")
|
287
|
+
end
|
288
|
+
|
289
|
+
#
|
290
|
+
# Gets the color dark khaki.
|
291
|
+
#
|
292
|
+
def self.dark_khaki
|
293
|
+
RgbColor.create_rgb_color("DarkKhaki")
|
294
|
+
end
|
295
|
+
|
296
|
+
#
|
297
|
+
# Gets the color dark magenta.
|
298
|
+
#
|
299
|
+
def self.dark_magenta
|
300
|
+
RgbColor.create_rgb_color("DarkMagenta")
|
301
|
+
end
|
302
|
+
|
303
|
+
#
|
304
|
+
# Gets the color dark olive green.
|
305
|
+
#
|
306
|
+
def self.dark_olive_green
|
307
|
+
RgbColor.create_rgb_color("DarkOliveGreen")
|
308
|
+
end
|
309
|
+
|
310
|
+
#
|
311
|
+
# Gets the color dark orange.
|
312
|
+
#
|
313
|
+
def self.dark_orange
|
314
|
+
RgbColor.create_rgb_color("DarkOrange")
|
315
|
+
end
|
316
|
+
|
317
|
+
#
|
318
|
+
# Gets the color dark orchid.
|
319
|
+
#
|
320
|
+
def self.dark_orchid
|
321
|
+
RgbColor.create_rgb_color("DarkOrchid")
|
322
|
+
end
|
323
|
+
|
324
|
+
#
|
325
|
+
# Gets the color dark red.
|
326
|
+
#
|
327
|
+
def self.dark_red
|
328
|
+
RgbColor.create_rgb_color("DarkRed")
|
329
|
+
end
|
330
|
+
|
331
|
+
#
|
332
|
+
# Gets the color dark salmon.
|
333
|
+
#
|
334
|
+
def self.dark_salmon
|
335
|
+
RgbColor.create_rgb_color("DarkSalmon")
|
336
|
+
end
|
337
|
+
|
338
|
+
#
|
339
|
+
# Gets the color dark sea green.
|
340
|
+
#
|
341
|
+
def self.dark_sea_green
|
342
|
+
RgbColor.create_rgb_color("DarkSeaGreen")
|
343
|
+
end
|
344
|
+
|
345
|
+
#
|
346
|
+
# Gets the color dark slate blue.
|
347
|
+
#
|
348
|
+
def self.dark_slate_blue
|
349
|
+
RgbColor.create_rgb_color("DarkSlateBlue")
|
350
|
+
end
|
351
|
+
|
352
|
+
#
|
353
|
+
# Gets the color dark slate gray.
|
354
|
+
#
|
355
|
+
def self.dark_slate_gray
|
356
|
+
RgbColor.create_rgb_color("DarkSlateGray")
|
357
|
+
end
|
358
|
+
|
359
|
+
#
|
360
|
+
# Gets the color dark turquoise.
|
361
|
+
#
|
362
|
+
def self.dark_turquoise
|
363
|
+
RgbColor.create_rgb_color("DarkTurquoise")
|
364
|
+
end
|
365
|
+
|
366
|
+
#
|
367
|
+
# Gets the color dark violet.
|
368
|
+
#
|
369
|
+
def self.dark_violet
|
370
|
+
RgbColor.create_rgb_color("DarkViolet")
|
371
|
+
end
|
372
|
+
|
373
|
+
#
|
374
|
+
# Gets the color deep pink.
|
375
|
+
#
|
376
|
+
def self.deep_pink
|
377
|
+
RgbColor.create_rgb_color("DeepPink")
|
378
|
+
end
|
379
|
+
|
380
|
+
#
|
381
|
+
# Gets the color deep sky blue.
|
382
|
+
#
|
383
|
+
def self.deep_sky_blue
|
384
|
+
RgbColor.create_rgb_color("DeepSkyBlue")
|
385
|
+
end
|
386
|
+
|
387
|
+
#
|
388
|
+
# Gets the color dodger blue.
|
389
|
+
#
|
390
|
+
def self.dodger_blue
|
391
|
+
RgbColor.create_rgb_color("DodgerBlue")
|
392
|
+
end
|
393
|
+
|
394
|
+
#
|
395
|
+
# Gets the color feldspar.
|
396
|
+
#
|
397
|
+
def self.feldspar
|
398
|
+
RgbColor.create_rgb_color("Feldspar")
|
399
|
+
end
|
400
|
+
|
401
|
+
#
|
402
|
+
# Gets the color fire brick.
|
403
|
+
#
|
404
|
+
def self.fire_brick
|
405
|
+
RgbColor.create_rgb_color("FireBrick")
|
406
|
+
end
|
407
|
+
|
408
|
+
#
|
409
|
+
# Gets the color floral white.
|
410
|
+
#
|
411
|
+
def self.floral_white
|
412
|
+
RgbColor.create_rgb_color("FloralWhite")
|
413
|
+
end
|
414
|
+
|
415
|
+
#
|
416
|
+
# Gets the color forest green.
|
417
|
+
#
|
418
|
+
def self.forest_green
|
419
|
+
RgbColor.create_rgb_color("ForestGreen")
|
420
|
+
end
|
421
|
+
|
422
|
+
#
|
423
|
+
# Gets the color fuchsia.
|
424
|
+
#
|
425
|
+
def self.fuchsia
|
426
|
+
RgbColor.create_rgb_color("Fuchsia")
|
427
|
+
end
|
428
|
+
|
429
|
+
#
|
430
|
+
# Gets the color ghost white.
|
431
|
+
#
|
432
|
+
def self.ghost_white
|
433
|
+
RgbColor.create_rgb_color("GhostWhite")
|
434
|
+
end
|
435
|
+
|
436
|
+
#
|
437
|
+
# Gets the color gold.
|
438
|
+
#
|
439
|
+
def self.gold
|
440
|
+
RgbColor.create_rgb_color("Gold")
|
441
|
+
end
|
442
|
+
|
443
|
+
#
|
444
|
+
# Gets the color golden rod.
|
445
|
+
#
|
446
|
+
def self.golden_rod
|
447
|
+
RgbColor.create_rgb_color("GoldenRod")
|
448
|
+
end
|
449
|
+
|
450
|
+
#
|
451
|
+
# Gets the color green yellow.
|
452
|
+
#
|
453
|
+
def self.green_yellow
|
454
|
+
RgbColor.create_rgb_color("GreenYellow")
|
455
|
+
end
|
456
|
+
|
457
|
+
#
|
458
|
+
# Gets the color honey dew.
|
459
|
+
#
|
460
|
+
def self.honey_dew
|
461
|
+
RgbColor.create_rgb_color("HoneyDew")
|
462
|
+
end
|
463
|
+
|
464
|
+
#
|
465
|
+
# Gets the color hot pink.
|
466
|
+
#
|
467
|
+
def self.hot_pink
|
468
|
+
RgbColor.create_rgb_color("HotPink")
|
469
|
+
end
|
470
|
+
|
471
|
+
#
|
472
|
+
# Gets the color indian red.
|
473
|
+
#
|
474
|
+
def self.indian_red
|
475
|
+
RgbColor.create_rgb_color("IndianRed")
|
476
|
+
end
|
477
|
+
|
478
|
+
#
|
479
|
+
# Gets the color indigo.
|
480
|
+
#
|
481
|
+
def self.indigo
|
482
|
+
RgbColor.create_rgb_color("Indigo")
|
483
|
+
end
|
484
|
+
|
485
|
+
#
|
486
|
+
# Gets the color ivory.
|
487
|
+
#
|
488
|
+
def self.ivory
|
489
|
+
RgbColor.create_rgb_color("Ivory")
|
490
|
+
end
|
491
|
+
|
492
|
+
#
|
493
|
+
# Gets the color khaki.
|
494
|
+
#
|
495
|
+
def self.khaki
|
496
|
+
RgbColor.create_rgb_color("Khaki")
|
497
|
+
end
|
498
|
+
|
499
|
+
#
|
500
|
+
# Gets the color lavender.
|
501
|
+
#
|
502
|
+
def self.lavender
|
503
|
+
RgbColor.create_rgb_color("Lavender")
|
504
|
+
end
|
505
|
+
|
506
|
+
#
|
507
|
+
# Gets the color lavender blush.
|
508
|
+
#
|
509
|
+
def self.lavender_blush
|
510
|
+
RgbColor.create_rgb_color("LavenderBlush")
|
511
|
+
end
|
512
|
+
|
513
|
+
#
|
514
|
+
# Gets the color lawn Green.
|
515
|
+
#
|
516
|
+
def self.lawn_green
|
517
|
+
RgbColor.create_rgb_color("LawnGreen")
|
518
|
+
end
|
519
|
+
|
520
|
+
#
|
521
|
+
# Gets the color lemon chiffon.
|
522
|
+
#
|
523
|
+
def self.lemon_chiffon
|
524
|
+
RgbColor.create_rgb_color("LemonChiffon")
|
525
|
+
end
|
526
|
+
|
527
|
+
#
|
528
|
+
# Gets the color light blue.
|
529
|
+
#
|
530
|
+
def self.light_blue
|
531
|
+
RgbColor.create_rgb_color("LightBlue")
|
532
|
+
end
|
533
|
+
|
534
|
+
#
|
535
|
+
# Gets the color light coral.
|
536
|
+
#
|
537
|
+
def self.light_coral
|
538
|
+
RgbColor.create_rgb_color("LightCoral")
|
539
|
+
end
|
540
|
+
|
541
|
+
#
|
542
|
+
# Gets the color light cyan.
|
543
|
+
#
|
544
|
+
def self.light_cyan
|
545
|
+
RgbColor.create_rgb_color("LightCyan")
|
546
|
+
end
|
547
|
+
|
548
|
+
#
|
549
|
+
# Gets the color light golden rod yellow.
|
550
|
+
#
|
551
|
+
def self.light_golden_rod_yellow
|
552
|
+
RgbColor.create_rgb_color("LightGoldenRodYellow")
|
553
|
+
end
|
554
|
+
|
555
|
+
#
|
556
|
+
# Gets the color light grey.
|
557
|
+
#
|
558
|
+
def self.light_grey
|
559
|
+
RgbColor.create_rgb_color("LightGrey")
|
560
|
+
end
|
561
|
+
|
562
|
+
#
|
563
|
+
# Gets the color light green.
|
564
|
+
#
|
565
|
+
def self.light_green
|
566
|
+
RgbColor.create_rgb_color("LightGreen")
|
567
|
+
end
|
568
|
+
|
569
|
+
#
|
570
|
+
# Gets the color light pink.
|
571
|
+
#
|
572
|
+
def self.light_pink
|
573
|
+
RgbColor.create_rgb_color("LightPink")
|
574
|
+
end
|
575
|
+
|
576
|
+
#
|
577
|
+
# Gets the color light salmon.
|
578
|
+
#
|
579
|
+
def self.light_salmon
|
580
|
+
RgbColor.create_rgb_color("LightSalmon")
|
581
|
+
end
|
582
|
+
|
583
|
+
#
|
584
|
+
# Gets the color light sea green.
|
585
|
+
#
|
586
|
+
def self.light_sea_green
|
587
|
+
RgbColor.create_rgb_color("LightSeaGreen")
|
588
|
+
end
|
589
|
+
|
590
|
+
#
|
591
|
+
# Gets the color light sky blue.
|
592
|
+
#
|
593
|
+
def self.light_sky_blue
|
594
|
+
RgbColor.create_rgb_color("LightSkyBlue")
|
595
|
+
end
|
596
|
+
|
597
|
+
#
|
598
|
+
# Gets the color light slate blue.
|
599
|
+
#
|
600
|
+
def self.light_slate_blue
|
601
|
+
RgbColor.create_rgb_color("LightSlateBlue")
|
602
|
+
end
|
603
|
+
|
604
|
+
#
|
605
|
+
# Gets the color light slate gray.
|
606
|
+
#
|
607
|
+
def self.light_slate_gray
|
608
|
+
RgbColor.create_rgb_color("LightSlateGray")
|
609
|
+
end
|
610
|
+
|
611
|
+
#
|
612
|
+
# Gets the color light steel blue.
|
613
|
+
#
|
614
|
+
def self.light_steel_blue
|
615
|
+
RgbColor.create_rgb_color("LightSteelBlue")
|
616
|
+
end
|
617
|
+
|
618
|
+
#
|
619
|
+
# Gets the color light yellow.
|
620
|
+
#
|
621
|
+
def self.light_yellow
|
622
|
+
RgbColor.create_rgb_color("LightYellow")
|
623
|
+
end
|
624
|
+
|
625
|
+
#
|
626
|
+
# Gets the color lime green.
|
627
|
+
#
|
628
|
+
def self.lime_green
|
629
|
+
RgbColor.create_rgb_color("LimeGreen")
|
630
|
+
end
|
631
|
+
|
632
|
+
#
|
633
|
+
# Gets the color linen.
|
634
|
+
#
|
635
|
+
def self.linen
|
636
|
+
RgbColor.create_rgb_color("Linen")
|
637
|
+
end
|
638
|
+
|
639
|
+
#
|
640
|
+
# Gets the color maroon.
|
641
|
+
#
|
642
|
+
def self.maroon
|
643
|
+
RgbColor.create_rgb_color("Maroon")
|
644
|
+
end
|
645
|
+
|
646
|
+
#
|
647
|
+
# Gets the color medium aqua marine.
|
648
|
+
#
|
649
|
+
def self.medium_aqua_marine
|
650
|
+
RgbColor.create_rgb_color("MediumAquaMarine")
|
651
|
+
end
|
652
|
+
|
653
|
+
#
|
654
|
+
# Gets the color medium blue.
|
655
|
+
#
|
656
|
+
def self.medium_blue
|
657
|
+
RgbColor.create_rgb_color("MediumBlue")
|
658
|
+
end
|
659
|
+
|
660
|
+
#
|
661
|
+
# Gets the color medium orchid.
|
662
|
+
#
|
663
|
+
def self.medium_orchid
|
664
|
+
RgbColor.create_rgb_color("MediumOrchid")
|
665
|
+
end
|
666
|
+
|
667
|
+
#
|
668
|
+
# Gets the color medium purple.
|
669
|
+
#
|
670
|
+
def self.medium_purple
|
671
|
+
RgbColor.create_rgb_color("MediumPurple")
|
672
|
+
end
|
673
|
+
|
674
|
+
#
|
675
|
+
# Gets the color medium sea green.
|
676
|
+
#
|
677
|
+
def self.medium_sea_green
|
678
|
+
RgbColor.create_rgb_color("MediumSeaGreen")
|
679
|
+
end
|
680
|
+
|
681
|
+
#
|
682
|
+
# Gets the color medium slate blue.
|
683
|
+
#
|
684
|
+
def self.medium_slate_blue
|
685
|
+
RgbColor.create_rgb_color("MediumSlateBlue")
|
686
|
+
end
|
687
|
+
|
688
|
+
#
|
689
|
+
# Gets the color medium spring green.
|
690
|
+
#
|
691
|
+
def self.medium_spring_green
|
692
|
+
RgbColor.create_rgb_color("MediumSpringGreen")
|
693
|
+
end
|
694
|
+
|
695
|
+
#
|
696
|
+
# Gets the color medium turquoise.
|
697
|
+
#
|
698
|
+
def self.medium_turquoise
|
699
|
+
RgbColor.create_rgb_color("MediumTurquoise")
|
700
|
+
end
|
701
|
+
|
702
|
+
#
|
703
|
+
# Gets the color medium violet red.
|
704
|
+
#
|
705
|
+
def self.medium_violet_red
|
706
|
+
RgbColor.create_rgb_color("MediumVioletRed")
|
707
|
+
end
|
708
|
+
|
709
|
+
#
|
710
|
+
# Gets the color midnight blue.
|
711
|
+
#
|
712
|
+
def self.midnight_blue
|
713
|
+
RgbColor.create_rgb_color("MidnightBlue")
|
714
|
+
end
|
715
|
+
|
716
|
+
#
|
717
|
+
# Gets the color mint cream.
|
718
|
+
#
|
719
|
+
def self.mint_cream
|
720
|
+
RgbColor.create_rgb_color("MintCream")
|
721
|
+
end
|
722
|
+
|
723
|
+
#
|
724
|
+
# Gets the color misty rose.
|
725
|
+
#
|
726
|
+
def self.misty_rose
|
727
|
+
RgbColor.create_rgb_color("MistyRose")
|
728
|
+
end
|
729
|
+
|
730
|
+
#
|
731
|
+
# Gets the color moccasin.
|
732
|
+
#
|
733
|
+
def self.moccasin
|
734
|
+
RgbColor.create_rgb_color("Moccasin")
|
735
|
+
end
|
736
|
+
|
737
|
+
#
|
738
|
+
# Gets the color navajo white.
|
739
|
+
#
|
740
|
+
def self.navajo_white
|
741
|
+
RgbColor.create_rgb_color("NavajoWhite")
|
742
|
+
end
|
743
|
+
|
744
|
+
#
|
745
|
+
# Gets the color navy.
|
746
|
+
#
|
747
|
+
def self.navy
|
748
|
+
RgbColor.create_rgb_color("Navy")
|
749
|
+
end
|
750
|
+
|
751
|
+
#
|
752
|
+
# Gets the color old lace.
|
753
|
+
#
|
754
|
+
def self.old_lace
|
755
|
+
RgbColor.create_rgb_color("OldLace")
|
756
|
+
end
|
757
|
+
|
758
|
+
#
|
759
|
+
# Gets the color olive.
|
760
|
+
#
|
761
|
+
def self.olive
|
762
|
+
RgbColor.create_rgb_color("Olive")
|
763
|
+
end
|
764
|
+
|
765
|
+
#
|
766
|
+
# Gets the color olive drab.
|
767
|
+
#
|
768
|
+
def self.olive_drab
|
769
|
+
RgbColor.create_rgb_color("OliveDrab")
|
770
|
+
end
|
771
|
+
|
772
|
+
#
|
773
|
+
# Gets the color gainsboro.
|
774
|
+
#
|
775
|
+
def self.gainsboro
|
776
|
+
RgbColor.create_rgb_color("Gainsboro")
|
777
|
+
end
|
778
|
+
|
779
|
+
#
|
780
|
+
# Gets the color orange.
|
781
|
+
#
|
782
|
+
def self.orange
|
783
|
+
RgbColor.create_rgb_color("Orange")
|
784
|
+
end
|
785
|
+
|
786
|
+
#
|
787
|
+
# Gets the color orange red.
|
788
|
+
#
|
789
|
+
def self.orange_red
|
790
|
+
RgbColor.create_rgb_color("OrangeRed")
|
791
|
+
end
|
792
|
+
|
793
|
+
#
|
794
|
+
# Gets the color orchid.
|
795
|
+
#
|
796
|
+
def self.orchid
|
797
|
+
RgbColor.create_rgb_color("Orchid")
|
798
|
+
end
|
799
|
+
|
800
|
+
#
|
801
|
+
# Gets the color pale golden rod.
|
802
|
+
#
|
803
|
+
def self.pale_golden_rod
|
804
|
+
RgbColor.create_rgb_color("PaleGoldenRod")
|
805
|
+
end
|
806
|
+
|
807
|
+
#
|
808
|
+
# Gets the color pale green.
|
809
|
+
#
|
810
|
+
def self.pale_green
|
811
|
+
RgbColor.create_rgb_color("PaleGreen")
|
812
|
+
end
|
813
|
+
|
814
|
+
#
|
815
|
+
# Gets the color pale turquoise.
|
816
|
+
#
|
817
|
+
def self.pale_turquoise
|
818
|
+
RgbColor.create_rgb_color("PaleTurquoise")
|
819
|
+
end
|
820
|
+
|
821
|
+
#
|
822
|
+
# Gets the color pale violet red.
|
823
|
+
#
|
824
|
+
def self.pale_violet_red
|
825
|
+
RgbColor.create_rgb_color("PaleVioletRed")
|
826
|
+
end
|
827
|
+
|
828
|
+
#
|
829
|
+
# Gets the color papaya whip.
|
830
|
+
#
|
831
|
+
def self.papaya_whip
|
832
|
+
RgbColor.create_rgb_color("PapayaWhip")
|
833
|
+
end
|
834
|
+
|
835
|
+
#
|
836
|
+
# Gets the color peach puff.
|
837
|
+
#
|
838
|
+
def self.peach_puff
|
839
|
+
RgbColor.create_rgb_color("PeachPuff")
|
840
|
+
end
|
841
|
+
|
842
|
+
#
|
843
|
+
# Gets the color peru.
|
844
|
+
#
|
845
|
+
def self.peru
|
846
|
+
RgbColor.create_rgb_color("Peru")
|
847
|
+
end
|
848
|
+
|
849
|
+
#
|
850
|
+
# Gets the color pink.
|
851
|
+
#
|
852
|
+
def self.pink
|
853
|
+
RgbColor.create_rgb_color("Pink")
|
854
|
+
end
|
855
|
+
|
856
|
+
#
|
857
|
+
# Gets the color plum.
|
858
|
+
#
|
859
|
+
def self.plum
|
860
|
+
RgbColor.create_rgb_color("Plum")
|
861
|
+
end
|
862
|
+
|
863
|
+
#
|
864
|
+
# Gets the color powder blue.
|
865
|
+
#
|
866
|
+
def self.powder_blue
|
867
|
+
RgbColor.create_rgb_color("PowderBlue")
|
868
|
+
end
|
869
|
+
|
870
|
+
#
|
871
|
+
# Gets the color rosy brown.
|
872
|
+
#
|
873
|
+
def self.rosy_brown
|
874
|
+
RgbColor.create_rgb_color("RosyBrown")
|
875
|
+
end
|
876
|
+
|
877
|
+
#
|
878
|
+
# Gets the color royal blue.
|
879
|
+
#
|
880
|
+
def self.royal_blue
|
881
|
+
RgbColor.create_rgb_color("RoyalBlue")
|
882
|
+
end
|
883
|
+
|
884
|
+
#
|
885
|
+
# Gets the color saddle brown.
|
886
|
+
#
|
887
|
+
def self.saddle_brown
|
888
|
+
RgbColor.create_rgb_color("SaddleBrown")
|
889
|
+
end
|
890
|
+
|
891
|
+
#
|
892
|
+
# Gets the color salmon.
|
893
|
+
#
|
894
|
+
def self.salmon
|
895
|
+
RgbColor.create_rgb_color("Salmon")
|
896
|
+
end
|
897
|
+
|
898
|
+
#
|
899
|
+
# Gets the color sandy brown.
|
900
|
+
#
|
901
|
+
def self.sandy_brown
|
902
|
+
RgbColor.create_rgb_color("SandyBrown")
|
903
|
+
end
|
904
|
+
|
905
|
+
#
|
906
|
+
# Gets the color sea green.
|
907
|
+
#
|
908
|
+
def self.sea_green
|
909
|
+
RgbColor.create_rgb_color("SeaGreen")
|
910
|
+
end
|
911
|
+
|
912
|
+
#
|
913
|
+
# Gets the color sea shell.
|
914
|
+
#
|
915
|
+
def self.sea_shell
|
916
|
+
RgbColor.create_rgb_color("SeaShell")
|
917
|
+
end
|
918
|
+
|
919
|
+
#
|
920
|
+
# Gets the color sienna.
|
921
|
+
#
|
922
|
+
def self.sienna
|
923
|
+
RgbColor.create_rgb_color("Sienna")
|
924
|
+
end
|
925
|
+
|
926
|
+
#
|
927
|
+
# Gets the color sky blue.
|
928
|
+
#
|
929
|
+
def self.sky_blue
|
930
|
+
RgbColor.create_rgb_color("SkyBlue")
|
931
|
+
end
|
932
|
+
|
933
|
+
#
|
934
|
+
# Gets the color slate blue.
|
935
|
+
#
|
936
|
+
def self.slate_blue
|
937
|
+
RgbColor.create_rgb_color("SlateBlue")
|
938
|
+
end
|
939
|
+
|
940
|
+
#
|
941
|
+
# Gets the color slate gray.
|
942
|
+
#
|
943
|
+
def self.slate_gray
|
944
|
+
RgbColor.create_rgb_color("SlateGray")
|
945
|
+
end
|
946
|
+
|
947
|
+
#
|
948
|
+
# Gets the color snow.
|
949
|
+
#
|
950
|
+
def self.snow
|
951
|
+
RgbColor.create_rgb_color("Snow")
|
952
|
+
end
|
953
|
+
|
954
|
+
#
|
955
|
+
# Gets the color spring green.
|
956
|
+
#
|
957
|
+
def self.spring_green
|
958
|
+
RgbColor.create_rgb_color("SpringGreen")
|
959
|
+
end
|
960
|
+
|
961
|
+
#
|
962
|
+
# Gets the color steel blue.
|
963
|
+
#
|
964
|
+
def self.steel_blue
|
965
|
+
RgbColor.create_rgb_color("SteelBlue")
|
966
|
+
end
|
967
|
+
|
968
|
+
#
|
969
|
+
# Gets the color Tan.
|
970
|
+
#
|
971
|
+
def self.tan
|
972
|
+
RgbColor.create_rgb_color("Tan")
|
973
|
+
end
|
974
|
+
|
975
|
+
#
|
976
|
+
# Gets the color teal.
|
977
|
+
#
|
978
|
+
def self.teal
|
979
|
+
RgbColor.create_rgb_color("Teal")
|
980
|
+
end
|
981
|
+
|
982
|
+
#
|
983
|
+
# Gets the color thistle.
|
984
|
+
#
|
985
|
+
def self.thistle
|
986
|
+
RgbColor.create_rgb_color("Thistle")
|
987
|
+
end
|
988
|
+
|
989
|
+
#
|
990
|
+
# Gets the color tomato.
|
991
|
+
#
|
992
|
+
def self.tomato
|
993
|
+
RgbColor.create_rgb_color("Tomato")
|
994
|
+
end
|
995
|
+
|
996
|
+
#
|
997
|
+
# Gets the color turquoise.
|
998
|
+
#
|
999
|
+
def self.turquoise
|
1000
|
+
RgbColor.create_rgb_color("Turquoise")
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
#
|
1004
|
+
# Gets the color violet.
|
1005
|
+
#
|
1006
|
+
def self.violet
|
1007
|
+
RgbColor.create_rgb_color("Violet")
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
#
|
1011
|
+
# Gets the color violet red.
|
1012
|
+
#
|
1013
|
+
def self.violet_red
|
1014
|
+
RgbColor.create_rgb_color("VioletRed")
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
#
|
1018
|
+
# Gets the color wheat.
|
1019
|
+
#
|
1020
|
+
def self.wheat
|
1021
|
+
RgbColor.create_rgb_color("Wheat")
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
#
|
1025
|
+
# Gets the color white smoke.
|
1026
|
+
#
|
1027
|
+
def self.white_smoke
|
1028
|
+
RgbColor.create_rgb_color("WhiteSmoke")
|
1029
|
+
end
|
1030
|
+
|
1031
|
+
#
|
1032
|
+
# Gets the color yellow green.
|
1033
|
+
#
|
1034
|
+
def self.yellow_green
|
1035
|
+
RgbColor.create_rgb_color("YellowGreen")
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
def to_json(_options = {})
|
1039
|
+
# json_array=array()
|
1040
|
+
|
1041
|
+
if @_color_string != nil
|
1042
|
+
@_color_string
|
1043
|
+
else
|
1044
|
+
"rgb(#{@red},#{@green},#{@blue})"
|
1045
|
+
end
|
1046
|
+
end
|
1047
|
+
end
|
1048
|
+
end
|