class Tourmaline::BackgroundFillFreeformGradient

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(type : String, colors : Array(Int32 | Int64) = [] of Int32 | Int64) #

[View source]

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


[View source]
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


[View source]
def type : String #

Type of the background fill, always "freeform_gradient"


[View source]
def type=(type : String) #

Type of the background fill, always "freeform_gradient"


[View source]