kvision / pl.treksoft.kvision.core / Background / <init>

<init>

(js) Background(color: Color? = null, image: ResString? = null, positionX: CssSize? = null, positionY: CssSize? = null, sizeX: CssSize? = null, sizeY: CssSize? = null, size: BgSize? = null, repeat: BgRepeat? = null, origin: BgOrigin? = null, clip: BgClip? = null, attachment: BgAttach? = null)

Type-safe definition of CSS background.

Parameters

color - color of the background

image - background image

positionX - horizontal position of the background image

positionY - vertical position of the background image

sizeX - horizontal size of the background image

sizeY - vertical size of the background image

size - resize of the background image

repeat - repeat option of the background image

origin - origin option of the background image

clip - clipping option of the background image

attachment - attachment option of the background image