class Tourmaline::BackgroundFillFreeformGradient
- Tourmaline::BackgroundFillFreeformGradient
- Reference
- Object
Overview
The background is a freeform gradient that rotates after every message in the chat.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(type : String, colors : Array(Int32 | Int64) = [] of Int32 | Int64)
Instance Method Summary
-
#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
-
#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
-
#type : String
Type of the background fill, always "freeform_gradient"
-
#type=(type : String)
Type of the background fill, always "freeform_gradient"
Constructor Detail
Instance Method Detail
def 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
def 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