Class: Google::Apis::SlidesV1::SolidFill
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SlidesV1::SolidFill
 
- 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 solid color fill. The page or page element is filled entirely with the specified color value. If any field is unset, its value may be inherited from a parent placeholder if it exists.
Instance Attribute Summary collapse
- 
  
    
      #alpha  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The fraction of this colorthat should be applied to the pixel.
- 
  
    
      #color  ⇒ Google::Apis::SlidesV1::OpaqueColor 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A themeable solid color value. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ SolidFill 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SolidFill. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SolidFill
Returns a new instance of SolidFill
| 3573 3574 3575 | # File 'generated/google/apis/slides_v1/classes.rb', line 3573 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#alpha ⇒ Float
The fraction of this color that should be applied to the pixel.
That is, the final pixel color is defined by the equation:
pixel color = alpha * (color) + (1.0 - alpha) * (background color)
This means that a value of 1.0 corresponds to a solid color, whereas
a value of 0.0 corresponds to a completely transparent color.
Corresponds to the JSON property alpha
| 3566 3567 3568 | # File 'generated/google/apis/slides_v1/classes.rb', line 3566 def alpha @alpha end | 
#color ⇒ Google::Apis::SlidesV1::OpaqueColor
A themeable solid color value.
Corresponds to the JSON property color
| 3571 3572 3573 | # File 'generated/google/apis/slides_v1/classes.rb', line 3571 def color @color end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3578 3579 3580 3581 | # File 'generated/google/apis/slides_v1/classes.rb', line 3578 def update!(**args) @alpha = args[:alpha] if args.key?(:alpha) @color = args[:color] if args.key?(:color) end |