Skip to content

Commit

Permalink
Adding imports.js for easier livecoding
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapericlp committed Jan 26, 2024
1 parent 7549ce2 commit 7f3fe34
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hydra/imports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
await loadScript("https://hyper-hydra.glitch.me/hydra-text.js")
await loadScript("https://hyper-hydra.glitch.me/hydra-tap.js")

const myFont = new FontFace('PressStart', 'url(https://fonts.gstatic.com/s/pressstart2p/v15/e3t4euO8T-267oIAQAu6jDQyK3nVivNm4I81.woff2');
await myFont.load();
document.fonts.add(myFont);

hydraText.font = "PressStart"
hydraText.lineWidth = "2%"

0 comments on commit 7f3fe34

Please sign in to comment.