Skip to content
pixi-silk
GitHub repository
Function

effectReach

import { effectReach } from 'pixi-silk/i18n';
function effectReach(style: ThemeStyle, maxBlur?: number): {
  glow: number;
  outline: number;
  shadow: number;
};

How far the paint effects of a style reach past the glyph edge, in pixels at scale 1: the largest of the outline width, the glow width and the shadow blur. The compiler sizes the atlas distance range from it.

Parameters#

ParameterTypeDefault value
styleThemeStyleundefined
maxBlurnumberSHADOW_MAX_BLUR

Returns#

{
  glow: number;
  outline: number;
  shadow: number;
}
NameTypeDefined in
glownumberpackages/pixi-silk/src/i18n/theme.ts:260
outlinenumberpackages/pixi-silk/src/i18n/theme.ts:260
shadownumberpackages/pixi-silk/src/i18n/theme.ts:260