MCPcopy Create free account
hub / github.com/NianBroken/Firework_Simulator / getWordDots

Function getWordDots

js/script.js:1505–1519  ·  view source on GitHub ↗
(word)

Source from the content-addressed store, hash-verified

1503
1504//获取字体点阵信息
1505function getWordDots(word) {
1506 if (!word) return null;
1507 // var res = wordDotsMap[word];
1508 // if (!res) {
1509 // wordDotsMap[word] = MyMath.literalLattice(word);
1510 // res = wordDotsMap[word];
1511 // }
1512
1513 //随机字体大小 60~130
1514 var fontSize = Math.floor(Math.random() * 70 + 60);
1515
1516 var res = MyMath.literalLattice(word, 3, "Gabriola,华文琥珀", fontSize + "px");
1517
1518 return res;
1519}
1520
1521/**
1522 * 用于创建球形粒子爆发的辅助对象。

Callers 1

createWordBurstFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected