Skip to content
pixi-silk
GitHub repository
Interface

TextOutline

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

A line drawn around the glyphs, outside their edge.

Properties#

PropertyTypeDescriptionDefined in
alpha?numberOutline opacity, 0 to 1. Default 1.text/SilkText.ts:42
color?ColorSourceOutline colour. Default black.text/SilkText.ts:40
widthnumberWidth in local units (pixels at scale 1). Reaches up to about a quarter of the font size with the default atlas.text/SilkText.ts:38