InterfaceShadowOptions

Options of Image.dropShadow

interface ShadowOptions {
    blur?: number;
    color?: number;
    expand?: boolean;
    spread?: number;
    x?: number;
    y?: number;
}

Properties

blur?: number

How soft the shadow's edge is: the standard deviation of a gaussian blur in pixels, like Image.blur. Default: 0

color?: number

The shadow's color, its alpha is the shadow's opacity. Default: 0x00000080 (50% black)

expand?: boolean

Whether to make the image larger so the shadow isn't cut off. Without it, the image keeps its size and the part of the shadow outside is lost. Default: true

spread?: number

How far to grow the shadow's shape before blurring it, in pixels. Default: 0

x?: number

How far to move the shadow to the right (negative values: to the left), in pixels. Default: 0

y?: number

How far to move the shadow down (negative values: up), in pixels. Default: 0