Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function creator(){
const font = parseASCII( Font.fnt() );
const colorMaterials = {};
function createText( str, font, color = 0xffffff, scale = 1.0 ){
const geometry = createGeometry({
text: str,
align: 'left',
width: 10000,
flipY: true,
font
});
const layout = geometry.layout;
export function creator() {
const font = parseASCII(Font.fnt());
const colorMaterials = {};
function createText(str, fnt, color, scale, wrapWidth, align) {
const geometry = createGeometry({
text: str,
align,
width: wrapWidth,
flipY: true,
font: fnt,
});
const layout = geometry.layout;
let material = colorMaterials[color];
export function creator(){
const font = parseASCII( Font.fnt() );
const colorMaterials = {};
function createText( str, font, color = 0xffffff, scale = 1.0, centerText ){
const geometry = createGeometry({
text: str,
align: 'left',
width: 10000,
flipY: true,
font
});
const layout = geometry.layout;
let material = colorMaterials[ color ];