MaskPosition

data class MaskPosition(point: String, x_shift: Float, y_shift: Float, scale: Float) : TelegramModel

This object describes the position on faces where a mask should be placed by default.

Constructors

MaskPosition
Link copied to clipboard
fun MaskPosition(point: String, x_shift: Float, y_shift: Float, scale: Float)
Creates a MaskPosition.

Properties

point
Link copied to clipboard
val point: String
The part of the face relative to which the mask should be placed.
scale
Link copied to clipboard
val scale: Float
Mask scaling coefficient.
x_shift
Link copied to clipboard
val x_shift: Float
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right.
y_shift
Link copied to clipboard
val y_shift: Float
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom.