/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
tests/visual/scenes/text-split/text-stroke-alpha-split.scene.ts
25 строк
661 B
Zyie
chore: reorganizes visual scene tests into logical subdirectories (#11872)
04 фев 2026, 16:38
Не верифицирован
04 фев 2026, 16:38
13d3c27
Код
Авторство
О чём код?
import { SplitText, Text, TextStyle } from '~/scene'; import type { TestScene } from '../../types'; import type { Container } from '~/scene'; export const scene: TestScene = { it: 'should render stroke and fill alpha separately using split text', create: async (scene: Container) => { const style = new TextStyle({ fill: 'rgba(255, 0, 0, 0.25)', fontSize: 64, stroke: { width: 4, } }); const text1 = new Text({ text: 'Hi', style }); const split1 = SplitText.from(text1); split1.position.set(0, 0); scene.addChild(split1); }, };