GoogleApi.Slides.V1.Model.ColorStop (google_api_slides v0.24.0)

View Source

A color and position in a gradient band.

Attributes

  • alpha (type: number(), default: nil) - The alpha value of this color in the gradient band. Defaults to 1.0, fully opaque.
  • color (type: GoogleApi.Slides.V1.Model.OpaqueColor.t, default: nil) - The color of the gradient stop.
  • position (type: number(), default: nil) - 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].

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Slides.V1.Model.ColorStop{
  alpha: number() | nil,
  color: GoogleApi.Slides.V1.Model.OpaqueColor.t() | nil,
  position: number() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.