class Google::Apis::SlidesV1::ColorStop
A color and position in a gradient band.
Attributes
alpha[RW]
The alpha value of this color in the gradient band. Defaults to 1.0, fully opaque. Corresponds to the JSON property `alpha` @return [Float]
color[RW]
A themeable solid color value. Corresponds to the JSON property `color` @return [Google::Apis::SlidesV1::OpaqueColor]
position[RW]
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` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/slides_v1/classes.rb, line 313 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/slides_v1/classes.rb, line 318 def update!(**args) @alpha = args[:alpha] if args.key?(:alpha) @color = args[:color] if args.key?(:color) @position = args[:position] if args.key?(:position) end