Skip to content
pentacular edited this page Sep 3, 2019 · 9 revisions

Open #inlay-text

source('ttf/greatVibes', 'https://jsxcad.js.org/ttf/GreatVibes-Regular.ttf');

const GreatVibes = await readFont('ttf/greatVibes');

const design =
    assemble(
        Cube(20, 10, 2)
          .below()
          .material('wood')
          .as('cube'),
        GreatVibes({}, "Hello")
          .extrude(1)
          .center()
          .below()
          .material('steel')
          .as('inlay'));

return design;
Clone this wiki locally