Class: TD::Types::BackgroundFill::Gradient
- Inherits:
-
TD::Types::BackgroundFill
- Object
- Dry::Struct
- TD::Types::Base
- TD::Types::BackgroundFill
- TD::Types::BackgroundFill::Gradient
- Defined in:
- lib/tdlib/types/background_fill/gradient.rb
Overview
Describes a gradient fill of a background.
Instance Attribute Summary collapse
-
#bottom_color ⇒ Integer
A bottom color of the background in the RGB24 format.
-
#rotation_angle ⇒ Integer
Clockwise rotation angle of the gradient, in degrees; 0-359.
-
#top_color ⇒ Integer
A top color of the background in the RGB24 format.
Method Summary
Methods inherited from TD::Types::Base
Instance Attribute Details
#bottom_color ⇒ Integer
A bottom color of the background in the RGB24 format.
8 9 10 |
# File 'lib/tdlib/types/background_fill/gradient.rb', line 8 def bottom_color @bottom_color end |
#rotation_angle ⇒ Integer
Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45.
8 9 10 |
# File 'lib/tdlib/types/background_fill/gradient.rb', line 8 def rotation_angle @rotation_angle end |
#top_color ⇒ Integer
A top color of the background in the RGB24 format.
8 9 10 |
# File 'lib/tdlib/types/background_fill/gradient.rb', line 8 def top_color @top_color end |