Class: Google::Apis::SlidesV1::Recolor
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::Recolor
- 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 recolor effect applied on an image.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the recolor effect.
-
#recolor_stops ⇒ Array<Google::Apis::SlidesV1::ColorStop>
The recolor effect is represented by a gradient, which is a list of color stops.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Recolor
constructor
A new instance of Recolor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Recolor
Returns a new instance of Recolor
1966 1967 1968 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1966 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the recolor effect.
The name is determined from the recolor_stops by matching the gradient
against the colors in the page's current color scheme. This property is
read-only.
Corresponds to the JSON property name
1964 1965 1966 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1964 def name @name end |
#recolor_stops ⇒ Array<Google::Apis::SlidesV1::ColorStop>
The recolor effect is represented by a gradient, which is a list of color
stops.
The colors in the gradient will replace the corresponding colors at
the same position in the color palette and apply to the image. This
property is read-only.
Corresponds to the JSON property recolorStops
1956 1957 1958 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1956 def recolor_stops @recolor_stops end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1971 1972 1973 1974 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1971 def update!(**args) @recolor_stops = args[:recolor_stops] if args.key?(:recolor_stops) @name = args[:name] if args.key?(:name) end |