Skip to content

class Tourmaline::BackgroundTypePattern
inherits Reference #

The background is a PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user.

Included modules

JSON::Serializable

Constructors#

.new(type, document, fill, intensity, is_inverted : Bool? = nil, is_moving : Bool? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#document : Tourmaline::Document #

Document with the pattern

View source

#document=(document : Tourmaline::Document) #

Document with the pattern

View source

#fill : Tourmaline::BackgroundFill #

The background fill that is combined with the pattern

View source

#fill=(fill : Tourmaline::BackgroundFill) #

The background fill that is combined with the pattern

View source

#intensity : Int32 | Int64 #

Intensity of the pattern when it is shown above the filled background; 0-100

View source

#intensity=(intensity : Int32 | Int64) #

Intensity of the pattern when it is shown above the filled background; 0-100

View source

#is_inverted=(is_inverted : Bool?) #

Optional. True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only

View source

#is_inverted? : Bool? #

Optional. True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only

View source

#is_moving=(is_moving : Bool?) #

Optional. True, if the background moves slightly when the device is tilted

View source

#is_moving? : Bool? #

Optional. True, if the background moves slightly when the device is tilted

View source

#type : String #

Type of the background, always "pattern"

View source

#type=(type : String) #

Type of the background, always "pattern"

View source