class Tourmaline::BackgroundTypePattern
- Tourmaline::BackgroundTypePattern
- Reference
- Object
Overview
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
Defined in:
tourmaline/types/api.crConstructors
- .new(type : String, document : Tourmaline::Document, fill : Tourmaline::BackgroundFillFreeformGradient | Tourmaline::BackgroundFillGradient | Tourmaline::BackgroundFillSolid, intensity : Int32 | Int64, is_inverted : Bool | Nil = nil, is_moving : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#document : Tourmaline::Document
Document with the pattern
-
#document=(document : Tourmaline::Document)
Document with the pattern
-
#fill : Tourmaline::BackgroundFill
The background fill that is combined with the pattern
-
#fill=(fill : Tourmaline::BackgroundFill)
The background fill that is combined with the pattern
-
#intensity : Int32 | Int64
Intensity of the pattern when it is shown above the filled background; 0-100
-
#intensity=(intensity : Int32 | Int64)
Intensity of the pattern when it is shown above the filled background; 0-100
-
#is_inverted=(is_inverted : Bool | Nil)
Optional.
-
#is_inverted? : Bool | Nil
Optional.
-
#is_moving=(is_moving : Bool | Nil)
Optional.
-
#is_moving? : Bool | Nil
Optional.
-
#type : String
Type of the background, always "pattern"
-
#type=(type : String)
Type of the background, always "pattern"
Constructor Detail
Instance Method Detail
The background fill that is combined with the pattern
Intensity of the pattern when it is shown above the filled background; 0-100
Intensity of the pattern when it is shown above the filled background; 0-100
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
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
Optional. True, if the background moves slightly when the device is tilted
Optional. True, if the background moves slightly when the device is tilted