Class: Google::Apis::SlidesV1::Recolor

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Recolor

Returns a new instance of Recolor



3294
3295
3296
# File 'generated/google/apis/slides_v1/classes.rb', line 3294

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

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

Returns:

  • (String)


3292
3293
3294
# File 'generated/google/apis/slides_v1/classes.rb', line 3292

def name
  @name
end

#recolor_stopsArray<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



3284
3285
3286
# File 'generated/google/apis/slides_v1/classes.rb', line 3284

def recolor_stops
  @recolor_stops
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3299
3300
3301
3302
# File 'generated/google/apis/slides_v1/classes.rb', line 3299

def update!(**args)
  @recolor_stops = args[:recolor_stops] if args.key?(:recolor_stops)
  @name = args[:name] if args.key?(:name)
end