Skip to content

class Tourmaline::BackgroundFillGradient
inherits Reference #

The background is a gradient fill.

Included modules

JSON::Serializable

Constructors#

.new(type, top_color, bottom_color, rotation_angle) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#bottom_color : Int32 | Int64 #

Bottom color of the gradient in the RGB24 format

View source

#bottom_color=(bottom_color : Int32 | Int64) #

Bottom color of the gradient in the RGB24 format

View source

#rotation_angle : Int32 | Int64 #

Clockwise rotation angle of the background fill in degrees; 0-359

View source

#rotation_angle=(rotation_angle : Int32 | Int64) #

Clockwise rotation angle of the background fill in degrees; 0-359

View source

#top_color : Int32 | Int64 #

Top color of the gradient in the RGB24 format

View source

#top_color=(top_color : Int32 | Int64) #

Top color of the gradient in the RGB24 format

View source

#type : String #

Type of the background fill, always "gradient"

View source

#type=(type : String) #

Type of the background fill, always "gradient"

View source