AppearancePatternProperties

Interface AppearancePatternProperties

The properties of an appearance pattern entity in the webvis context.

interface AppearancePatternProperties {
    backgroundColor?: [number, number, number, number];
    distortRatio?: number;
    distortStrength?: number;
    foregroundColor?: [number, number, number, number];
    name?: string;
    offset?: [number, number];
    rotation?: number;
    scale?: number;
    type?: AppearancePatternType;
    weight?: number;
}
Index

Properties

backgroundColor?: [number, number, number, number]

Specifies the background color of the pattern as [R, G, B, A], each value in the range 0-1.

[0, 0, 0, 0]
distortRatio?: number

Specifies an optional distortion ratio for the pattern in the range 0-∞.

0.5
distortStrength?: number

Specifies an optional distortion strength for the pattern in the range 0-∞.

0.0
foregroundColor?: [number, number, number, number]

Specifies the foreground color of the pattern as [R, G, B, A], each value in the range 0-1.

[1, 0, 0, 1]
name?: string

Specifies an optional name for the pattern.

undefined
offset?: [number, number]

Specifies an optional x/y offset for the pattern as [x, y].

[0, 0]
rotation?: number

Specifies an optional rotation of the pattern in radians.

0
scale?: number

Specifies the scale of the pattern. A value of 0.25 results in 4 checkerboard tiles horizontally.

0.005

Specifies the type of the pattern to be used.

AppearancePatternType.STRIPES
weight?: number

Specifies an optional weight for the pattern in the range 0-1.

0.5