Skip to content
pixi-silk
GitHub repository
Interface

TextShadow

import type { TextShadow } from 'pixi-silk/text';

A soft copy of the glyphs under them: a drop shadow with an offset, a glow without one.

Properties#

PropertyTypeDescriptionDefined in
alpha?numberShadow opacity, 0 to 1. Default 1.text/SilkText.ts:50
blur?numberSoftness in local units. Reaches up to about a quarter of the font size with the default atlas. Default 4.text/SilkText.ts:52
color?ColorSourceShadow colour. Default black.text/SilkText.ts:48
offsetX?numberHorizontal offset in local units. Default 0.text/SilkText.ts:54
offsetY?numberVertical offset in local units. Default 0.text/SilkText.ts:56