class Google::Apis::FusiontablesV2::StyleFunction::Gradient::Color

Attributes

color[RW]

Color in #RRGGBB format. Corresponds to the JSON property `color` @return [String]

opacity[RW]

Opacity of the color: 0.0 (transparent) to 1.0 (opaque). Corresponds to the JSON property `opacity` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/fusiontables_v2/classes.rb, line 637
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/fusiontables_v2/classes.rb, line 642
def update!(**args)
  @color = args[:color] if args.key?(:color)
  @opacity = args[:opacity] if args.key?(:opacity)
end