Class: TD::Types::BackgroundFill::Gradient

Inherits:
TD::Types::BackgroundFill show all
Defined in:
lib/tdlib/types/background_fill/gradient.rb

Overview

Describes a gradient fill of a background.

Instance Attribute Summary collapse

Method Summary

Methods inherited from TD::Types::Base

#to_hash, #to_json

Instance Attribute Details

#bottom_colorInteger

A bottom color of the background in the RGB24 format.

Returns:

  • (Integer)

    the current value of bottom_color



8
9
10
# File 'lib/tdlib/types/background_fill/gradient.rb', line 8

def bottom_color
  @bottom_color
end

#rotation_angleInteger

Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45.

Returns:

  • (Integer)

    the current value of rotation_angle



8
9
10
# File 'lib/tdlib/types/background_fill/gradient.rb', line 8

def rotation_angle
  @rotation_angle
end

#top_colorInteger

A top color of the background in the RGB24 format.

Returns:

  • (Integer)

    the current value of top_color



8
9
10
# File 'lib/tdlib/types/background_fill/gradient.rb', line 8

def top_color
  @top_color
end