Class: Google::Apis::SlidesV1::ColorStop
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::ColorStop
- 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
A color and position in a gradient band.
Instance Attribute Summary collapse
-
#alpha ⇒ Float
The alpha value of this color in the gradient band.
-
#color ⇒ Google::Apis::SlidesV1::OpaqueColor
A themeable solid color value.
-
#position ⇒ Float
The relative position of the color stop in the gradient band measured in percentage.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ColorStop
constructor
A new instance of ColorStop.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ColorStop
Returns a new instance of ColorStop
2343 2344 2345 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2343 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alpha ⇒ Float
The alpha value of this color in the gradient band. Defaults to 1.0,
fully opaque.
Corresponds to the JSON property alpha
2330 2331 2332 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2330 def alpha @alpha end |
#color ⇒ Google::Apis::SlidesV1::OpaqueColor
A themeable solid color value.
Corresponds to the JSON property color
2341 2342 2343 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2341 def color @color end |
#position ⇒ Float
The relative position of the color stop in the gradient band measured
in percentage. The value should be in the interval [0.0, 1.0].
Corresponds to the JSON property position
2336 2337 2338 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2336 def position @position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2348 2349 2350 2351 2352 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2348 def update!(**args) @alpha = args[:alpha] if args.key?(:alpha) @position = args[:position] if args.key?(:position) @color = args[:color] if args.key?(:color) end |