How to use parse-bmfont-ascii - 3 common examples

To help you get started, we’ve selected a few parse-bmfont-ascii examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dataarts / dat.guiVR / modules / datguivr / sdftext.js View on Github external
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;
github puckey / dance-tonite / src / sdftext / index.js View on Github external
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];
github wonderunit / storyboarder / src / js / express-xr / src / gui / dat.gui / sdftext.js View on Github external
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 ];

parse-bmfont-ascii

parses ASCII BMFont files to a JavaScript object

MIT
Latest version published 10 years ago

Package Health Score

65 / 100
Full package analysis

Popular parse-bmfont-ascii functions