Class: Google::Apis::SlidesV1::RgbColor
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::RgbColor
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb
Overview
An RGB color.
Instance Attribute Summary collapse
-
#blue ⇒ Float
The blue component of the color, from 0.0 to 1.0.
-
#green ⇒ Float
The green component of the color, from 0.0 to 1.0.
-
#red ⇒ Float
The red component of the color, from 0.0 to 1.0.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RgbColor
constructor
A new instance of RgbColor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RgbColor
Returns a new instance of RgbColor
2450 2451 2452 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2450 def initialize(**args) update!(**args) end |
Instance Attribute Details
#blue ⇒ Float
The blue component of the color, from 0.0 to 1.0.
Corresponds to the JSON property blue
2443 2444 2445 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2443 def blue @blue end |
#green ⇒ Float
The green component of the color, from 0.0 to 1.0.
Corresponds to the JSON property green
2448 2449 2450 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2448 def green @green end |
#red ⇒ Float
The red component of the color, from 0.0 to 1.0.
Corresponds to the JSON property red
2438 2439 2440 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2438 def red @red end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2455 2456 2457 2458 2459 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2455 def update!(**args) @red = args[:red] if args.key?(:red) @blue = args[:blue] if args.key?(:blue) @green = args[:green] if args.key?(:green) end |