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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/slides_v1/classes.rb,
lib/google/apis/slides_v1/representations.rb,
lib/google/apis/slides_v1/representations.rb

Overview

A recolor effect applied on an image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Recolor

Returns a new instance of Recolor.



2528
2529
2530
# File 'lib/google/apis/slides_v1/classes.rb', line 2528

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)


2518
2519
2520
# File 'lib/google/apis/slides_v1/classes.rb', line 2518

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



2526
2527
2528
# File 'lib/google/apis/slides_v1/classes.rb', line 2526

def recolor_stops
  @recolor_stops
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2533
2534
2535
2536
# File 'lib/google/apis/slides_v1/classes.rb', line 2533

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