Skip to content

GramIO API Reference / @gramio/contexts/dist / BackgroundFillGradient

Class: BackgroundFillGradient

Defined in: contexts/index.d.ts:1010

The background is a gradient fill.

Documentation

Constructors

Constructor

new BackgroundFillGradient(payload): BackgroundFillGradient

Defined in: contexts/index.d.ts:1012

Parameters

ParameterType
payloadTelegramBackgroundFillGradient

Returns

BackgroundFillGradient

Properties

PropertyTypeDefined in
payloadTelegramBackgroundFillGradientcontexts/index.d.ts:1011

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:1014

MDN

Returns

string


bottomColor

Get Signature

get bottomColor(): number

Defined in: contexts/index.d.ts:1026

Bottom color of the gradient in the RGB24 format

Returns

number


rotationAngle

Get Signature

get rotationAngle(): number

Defined in: contexts/index.d.ts:1030

Clockwise rotation angle of the background fill in degrees; 0-359

Returns

number


topColor

Get Signature

get topColor(): number

Defined in: contexts/index.d.ts:1022

Top color of the gradient in the RGB24 format

Returns

number


type

Get Signature

get type(): "gradient"

Defined in: contexts/index.d.ts:1018

Type of the background fill, always “gradient”

Returns

"gradient"