Skip to content

class Tourmaline::BackgroundFillFreeformGradient
inherits Reference #

The background is a freeform gradient that rotates after every message in the chat.

Included modules

JSON::Serializable

Constructors#

.new(pull : JSON::PullParser) #

View source

.new(type, colors : Array(Int32 | Int64) = [] of Int32 | Int64) #

View source

Methods#

#colors : Array(Int32 | Int64) #

A list of the 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format

View source

#colors=(colors : Array(Int32 | Int64)) #

A list of the 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format

View source

#type : String #

Type of the background fill, always "freeform_gradient"

View source

#type=(type : String) #

Type of the background fill, always "freeform_gradient"

View source