@20baht/stickers 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (413) hide show
  1. package/LICENSE +48 -0
  2. package/README.md +173 -2
  3. package/dist/all.d.ts +4 -0
  4. package/dist/all.js +7 -0
  5. package/dist/element.d.ts +103 -0
  6. package/dist/element.js +181 -0
  7. package/dist/graph.d.ts +172 -0
  8. package/dist/graph.js +374 -0
  9. package/dist/icons/access-point.d.ts +2 -0
  10. package/dist/icons/access-point.js +34 -0
  11. package/dist/icons/ai-agent.d.ts +2 -0
  12. package/dist/icons/ai-agent.js +50 -0
  13. package/dist/icons/alarm-clock.d.ts +2 -0
  14. package/dist/icons/alarm-clock.js +46 -0
  15. package/dist/icons/all-in-one.d.ts +2 -0
  16. package/dist/icons/all-in-one.js +37 -0
  17. package/dist/icons/angpao.d.ts +2 -0
  18. package/dist/icons/angpao.js +46 -0
  19. package/dist/icons/badge-reader.d.ts +2 -0
  20. package/dist/icons/badge-reader.js +51 -0
  21. package/dist/icons/baht-note.d.ts +2 -0
  22. package/dist/icons/baht-note.js +42 -0
  23. package/dist/icons/bamboo.d.ts +2 -0
  24. package/dist/icons/bamboo.js +57 -0
  25. package/dist/icons/banana-leaf.d.ts +2 -0
  26. package/dist/icons/banana-leaf.js +87 -0
  27. package/dist/icons/banana-tree.d.ts +2 -0
  28. package/dist/icons/banana-tree.js +75 -0
  29. package/dist/icons/bear.d.ts +2 -0
  30. package/dist/icons/bear.js +39 -0
  31. package/dist/icons/blade-chassis.d.ts +2 -0
  32. package/dist/icons/blade-chassis.js +43 -0
  33. package/dist/icons/bond.d.ts +2 -0
  34. package/dist/icons/bond.js +48 -0
  35. package/dist/icons/books.d.ts +2 -0
  36. package/dist/icons/books.js +44 -0
  37. package/dist/icons/bts-card.d.ts +2 -0
  38. package/dist/icons/bts-card.js +47 -0
  39. package/dist/icons/budget-jar.d.ts +2 -0
  40. package/dist/icons/budget-jar.js +43 -0
  41. package/dist/icons/cactus.d.ts +2 -0
  42. package/dist/icons/cactus.js +42 -0
  43. package/dist/icons/calculator.d.ts +2 -0
  44. package/dist/icons/calculator.js +46 -0
  45. package/dist/icons/calendar-month.d.ts +2 -0
  46. package/dist/icons/calendar-month.js +66 -0
  47. package/dist/icons/campfire.d.ts +2 -0
  48. package/dist/icons/campfire.js +63 -0
  49. package/dist/icons/cctv.d.ts +2 -0
  50. package/dist/icons/cctv.js +38 -0
  51. package/dist/icons/certificate.d.ts +2 -0
  52. package/dist/icons/certificate.js +50 -0
  53. package/dist/icons/cha-yen.d.ts +2 -0
  54. package/dist/icons/cha-yen.js +68 -0
  55. package/dist/icons/chedi.d.ts +2 -0
  56. package/dist/icons/chedi.js +56 -0
  57. package/dist/icons/classic-phone.d.ts +2 -0
  58. package/dist/icons/classic-phone.js +32 -0
  59. package/dist/icons/clipboard.d.ts +2 -0
  60. package/dist/icons/clipboard.js +61 -0
  61. package/dist/icons/cloud.d.ts +2 -0
  62. package/dist/icons/cloud.js +28 -0
  63. package/dist/icons/coins.d.ts +2 -0
  64. package/dist/icons/coins.js +34 -0
  65. package/dist/icons/compare.d.ts +2 -0
  66. package/dist/icons/compare.js +33 -0
  67. package/dist/icons/confetti.d.ts +2 -0
  68. package/dist/icons/confetti.js +72 -0
  69. package/dist/icons/convenience-bag.d.ts +2 -0
  70. package/dist/icons/convenience-bag.js +51 -0
  71. package/dist/icons/cooling.d.ts +2 -0
  72. package/dist/icons/cooling.js +46 -0
  73. package/dist/icons/copy-files.d.ts +2 -0
  74. package/dist/icons/copy-files.js +37 -0
  75. package/dist/icons/core-switch.d.ts +2 -0
  76. package/dist/icons/core-switch.js +48 -0
  77. package/dist/icons/cron.d.ts +2 -0
  78. package/dist/icons/cron.js +86 -0
  79. package/dist/icons/cursor.d.ts +2 -0
  80. package/dist/icons/cursor.js +27 -0
  81. package/dist/icons/database.d.ts +2 -0
  82. package/dist/icons/database.js +24 -0
  83. package/dist/icons/desktop-tower.d.ts +2 -0
  84. package/dist/icons/desktop-tower.js +41 -0
  85. package/dist/icons/disc-image.d.ts +2 -0
  86. package/dist/icons/disc-image.js +54 -0
  87. package/dist/icons/dollar-note.d.ts +2 -0
  88. package/dist/icons/dollar-note.js +44 -0
  89. package/dist/icons/electric-bill.d.ts +2 -0
  90. package/dist/icons/electric-bill.js +51 -0
  91. package/dist/icons/email.d.ts +2 -0
  92. package/dist/icons/email.js +57 -0
  93. package/dist/icons/empty-state.d.ts +2 -0
  94. package/dist/icons/empty-state.js +75 -0
  95. package/dist/icons/expense.d.ts +2 -0
  96. package/dist/icons/expense.js +36 -0
  97. package/dist/icons/export-file.d.ts +2 -0
  98. package/dist/icons/export-file.js +35 -0
  99. package/dist/icons/eyedropper.d.ts +2 -0
  100. package/dist/icons/eyedropper.js +69 -0
  101. package/dist/icons/face-id.d.ts +2 -0
  102. package/dist/icons/face-id.js +51 -0
  103. package/dist/icons/file.d.ts +2 -0
  104. package/dist/icons/file.js +15 -0
  105. package/dist/icons/finance-b-coins.d.ts +8 -0
  106. package/dist/icons/finance-b-coins.js +14 -0
  107. package/dist/icons/finance-tray.d.ts +11 -0
  108. package/dist/icons/finance-tray.js +41 -0
  109. package/dist/icons/fingerprint.d.ts +2 -0
  110. package/dist/icons/fingerprint.js +45 -0
  111. package/dist/icons/firewall.d.ts +2 -0
  112. package/dist/icons/firewall.js +76 -0
  113. package/dist/icons/floating-ip.d.ts +2 -0
  114. package/dist/icons/floating-ip.js +59 -0
  115. package/dist/icons/flower.d.ts +2 -0
  116. package/dist/icons/flower.js +49 -0
  117. package/dist/icons/food.d.ts +6 -0
  118. package/dist/icons/food.js +18 -0
  119. package/dist/icons/freelance.d.ts +2 -0
  120. package/dist/icons/freelance.js +51 -0
  121. package/dist/icons/fuel.d.ts +2 -0
  122. package/dist/icons/fuel.js +46 -0
  123. package/dist/icons/goal.d.ts +2 -0
  124. package/dist/icons/goal.js +51 -0
  125. package/dist/icons/gold-bar.d.ts +2 -0
  126. package/dist/icons/gold-bar.js +60 -0
  127. package/dist/icons/hard-drive.d.ts +2 -0
  128. package/dist/icons/hard-drive.js +42 -0
  129. package/dist/icons/highlighter.d.ts +2 -0
  130. package/dist/icons/highlighter.js +75 -0
  131. package/dist/icons/home-router.d.ts +2 -0
  132. package/dist/icons/home-router.js +32 -0
  133. package/dist/icons/hot-drink.d.ts +2 -0
  134. package/dist/icons/hot-drink.js +33 -0
  135. package/dist/icons/hsm.d.ts +2 -0
  136. package/dist/icons/hsm.js +54 -0
  137. package/dist/icons/id-card.d.ts +2 -0
  138. package/dist/icons/id-card.js +36 -0
  139. package/dist/icons/income.d.ts +2 -0
  140. package/dist/icons/income.js +28 -0
  141. package/dist/icons/index.d.ts +187 -0
  142. package/dist/icons/index.js +370 -0
  143. package/dist/icons/interest.d.ts +2 -0
  144. package/dist/icons/interest.js +66 -0
  145. package/dist/icons/iot-sensor.d.ts +2 -0
  146. package/dist/icons/iot-sensor.js +35 -0
  147. package/dist/icons/ip-phone.d.ts +2 -0
  148. package/dist/icons/ip-phone.js +47 -0
  149. package/dist/icons/ipad-gen8.d.ts +2 -0
  150. package/dist/icons/ipad-gen8.js +58 -0
  151. package/dist/icons/iphone-17.d.ts +2 -0
  152. package/dist/icons/iphone-17.js +37 -0
  153. package/dist/icons/iso.d.ts +2 -0
  154. package/dist/icons/iso.js +3 -0
  155. package/dist/icons/kanban.d.ts +2 -0
  156. package/dist/icons/kanban.js +85 -0
  157. package/dist/icons/kaprao.d.ts +2 -0
  158. package/dist/icons/kaprao.js +70 -0
  159. package/dist/icons/key-pair.d.ts +2 -0
  160. package/dist/icons/key-pair.js +54 -0
  161. package/dist/icons/key.d.ts +3 -0
  162. package/dist/icons/key.js +37 -0
  163. package/dist/icons/keyboard.d.ts +2 -0
  164. package/dist/icons/keyboard.js +35 -0
  165. package/dist/icons/kite.d.ts +2 -0
  166. package/dist/icons/kite.js +53 -0
  167. package/dist/icons/kvm.d.ts +2 -0
  168. package/dist/icons/kvm.js +53 -0
  169. package/dist/icons/lamp.d.ts +2 -0
  170. package/dist/icons/lamp.js +49 -0
  171. package/dist/icons/laptop.d.ts +2 -0
  172. package/dist/icons/laptop.js +44 -0
  173. package/dist/icons/load-balancer.d.ts +2 -0
  174. package/dist/icons/load-balancer.js +50 -0
  175. package/dist/icons/lock-screen.d.ts +2 -0
  176. package/dist/icons/lock-screen.js +44 -0
  177. package/dist/icons/long-tail-boat.d.ts +2 -0
  178. package/dist/icons/long-tail-boat.js +66 -0
  179. package/dist/icons/lottery.d.ts +2 -0
  180. package/dist/icons/lottery.js +51 -0
  181. package/dist/icons/lotus.d.ts +2 -0
  182. package/dist/icons/lotus.js +70 -0
  183. package/dist/icons/mac-mini.d.ts +2 -0
  184. package/dist/icons/mac-mini.js +31 -0
  185. package/dist/icons/macbook-air.d.ts +2 -0
  186. package/dist/icons/macbook-air.js +41 -0
  187. package/dist/icons/mailbox-thai.d.ts +2 -0
  188. package/dist/icons/mailbox-thai.js +66 -0
  189. package/dist/icons/mango-sticky-rice.d.ts +2 -0
  190. package/dist/icons/mango-sticky-rice.js +41 -0
  191. package/dist/icons/marigold.d.ts +2 -0
  192. package/dist/icons/marigold.js +69 -0
  193. package/dist/icons/market-basket.d.ts +2 -0
  194. package/dist/icons/market-basket.js +69 -0
  195. package/dist/icons/media-player.d.ts +2 -0
  196. package/dist/icons/media-player.js +71 -0
  197. package/dist/icons/metrics.d.ts +2 -0
  198. package/dist/icons/metrics.js +58 -0
  199. package/dist/icons/mini-pc.d.ts +2 -0
  200. package/dist/icons/mini-pc.js +26 -0
  201. package/dist/icons/modem.d.ts +2 -0
  202. package/dist/icons/modem.js +37 -0
  203. package/dist/icons/monitor.d.ts +2 -0
  204. package/dist/icons/monitor.js +40 -0
  205. package/dist/icons/monstera.d.ts +2 -0
  206. package/dist/icons/monstera.js +47 -0
  207. package/dist/icons/moon.d.ts +2 -0
  208. package/dist/icons/moon.js +55 -0
  209. package/dist/icons/motorbike-taxi.d.ts +2 -0
  210. package/dist/icons/motorbike-taxi.js +42 -0
  211. package/dist/icons/music-note.d.ts +2 -0
  212. package/dist/icons/music-note.js +63 -0
  213. package/dist/icons/nas-2bay.d.ts +2 -0
  214. package/dist/icons/nas-2bay.js +49 -0
  215. package/dist/icons/nas.d.ts +2 -0
  216. package/dist/icons/nas.js +41 -0
  217. package/dist/icons/nature-iso.d.ts +29 -0
  218. package/dist/icons/nature-iso.js +74 -0
  219. package/dist/icons/noodle-soup.d.ts +2 -0
  220. package/dist/icons/noodle-soup.js +52 -0
  221. package/dist/icons/notebook.d.ts +2 -0
  222. package/dist/icons/notebook.js +44 -0
  223. package/dist/icons/object-drum.d.ts +18 -0
  224. package/dist/icons/object-drum.js +63 -0
  225. package/dist/icons/otp.d.ts +2 -0
  226. package/dist/icons/otp.js +46 -0
  227. package/dist/icons/over-budget.d.ts +2 -0
  228. package/dist/icons/over-budget.js +48 -0
  229. package/dist/icons/pad-see-ew.d.ts +2 -0
  230. package/dist/icons/pad-see-ew.js +56 -0
  231. package/dist/icons/palm-tree.d.ts +2 -0
  232. package/dist/icons/palm-tree.js +52 -0
  233. package/dist/icons/paper-boat.d.ts +2 -0
  234. package/dist/icons/paper-boat.js +67 -0
  235. package/dist/icons/paper.d.ts +3 -0
  236. package/dist/icons/paper.js +45 -0
  237. package/dist/icons/password.d.ts +2 -0
  238. package/dist/icons/password.js +45 -0
  239. package/dist/icons/patch-panel.d.ts +2 -0
  240. package/dist/icons/patch-panel.js +41 -0
  241. package/dist/icons/pdu.d.ts +2 -0
  242. package/dist/icons/pdu.js +40 -0
  243. package/dist/icons/phone-topup.d.ts +2 -0
  244. package/dist/icons/phone-topup.js +55 -0
  245. package/dist/icons/photo.d.ts +2 -0
  246. package/dist/icons/photo.js +48 -0
  247. package/dist/icons/phuang-malai.d.ts +2 -0
  248. package/dist/icons/phuang-malai.js +59 -0
  249. package/dist/icons/pie-chart.d.ts +2 -0
  250. package/dist/icons/pie-chart.js +36 -0
  251. package/dist/icons/piggy-bank.d.ts +2 -0
  252. package/dist/icons/piggy-bank.js +64 -0
  253. package/dist/icons/plant-kit.d.ts +23 -0
  254. package/dist/icons/plant-kit.js +112 -0
  255. package/dist/icons/plastic-stool.d.ts +2 -0
  256. package/dist/icons/plastic-stool.js +67 -0
  257. package/dist/icons/pointer.d.ts +1 -0
  258. package/dist/icons/pointer.js +12 -0
  259. package/dist/icons/pos.d.ts +2 -0
  260. package/dist/icons/pos.js +59 -0
  261. package/dist/icons/potted-plant.d.ts +2 -0
  262. package/dist/icons/potted-plant.js +31 -0
  263. package/dist/icons/power-pole.d.ts +2 -0
  264. package/dist/icons/power-pole.js +60 -0
  265. package/dist/icons/power-station.d.ts +2 -0
  266. package/dist/icons/power-station.js +56 -0
  267. package/dist/icons/printer.d.ts +2 -0
  268. package/dist/icons/printer.js +46 -0
  269. package/dist/icons/qr-code.d.ts +2 -0
  270. package/dist/icons/qr-code.js +45 -0
  271. package/dist/icons/rack.d.ts +2 -0
  272. package/dist/icons/rack.js +39 -0
  273. package/dist/icons/rain-cloud.d.ts +2 -0
  274. package/dist/icons/rain-cloud.js +31 -0
  275. package/dist/icons/rainbow.d.ts +2 -0
  276. package/dist/icons/rainbow.js +46 -0
  277. package/dist/icons/receipt.d.ts +2 -0
  278. package/dist/icons/receipt.js +56 -0
  279. package/dist/icons/redmi-note-9s-pro.d.ts +2 -0
  280. package/dist/icons/redmi-note-9s-pro.js +37 -0
  281. package/dist/icons/register.d.ts +2 -0
  282. package/dist/icons/register.js +40 -0
  283. package/dist/icons/remote-desktop.d.ts +2 -0
  284. package/dist/icons/remote-desktop.js +62 -0
  285. package/dist/icons/remote-folder.d.ts +2 -0
  286. package/dist/icons/remote-folder.js +55 -0
  287. package/dist/icons/rent.d.ts +2 -0
  288. package/dist/icons/rent.js +50 -0
  289. package/dist/icons/rock.d.ts +2 -0
  290. package/dist/icons/rock.js +80 -0
  291. package/dist/icons/router.d.ts +2 -0
  292. package/dist/icons/router.js +59 -0
  293. package/dist/icons/salary.d.ts +2 -0
  294. package/dist/icons/salary.js +54 -0
  295. package/dist/icons/saving-streak.d.ts +2 -0
  296. package/dist/icons/saving-streak.js +66 -0
  297. package/dist/icons/scan-slip.d.ts +2 -0
  298. package/dist/icons/scan-slip.js +53 -0
  299. package/dist/icons/scissors.d.ts +2 -0
  300. package/dist/icons/scissors.js +52 -0
  301. package/dist/icons/server-cabinet.d.ts +2 -0
  302. package/dist/icons/server-cabinet.js +49 -0
  303. package/dist/icons/server.d.ts +2 -0
  304. package/dist/icons/server.js +41 -0
  305. package/dist/icons/shared.d.ts +8 -0
  306. package/dist/icons/shared.js +18 -0
  307. package/dist/icons/shield.d.ts +3 -0
  308. package/dist/icons/shield.js +28 -0
  309. package/dist/icons/shooting-star.d.ts +2 -0
  310. package/dist/icons/shooting-star.js +37 -0
  311. package/dist/icons/shopping-box.d.ts +2 -0
  312. package/dist/icons/shopping-box.js +46 -0
  313. package/dist/icons/sky-kit.d.ts +19 -0
  314. package/dist/icons/sky-kit.js +72 -0
  315. package/dist/icons/smart-tv.d.ts +2 -0
  316. package/dist/icons/smart-tv.js +39 -0
  317. package/dist/icons/smartphone.d.ts +2 -0
  318. package/dist/icons/smartphone.js +30 -0
  319. package/dist/icons/sms.d.ts +2 -0
  320. package/dist/icons/sms.js +45 -0
  321. package/dist/icons/snapshots.d.ts +2 -0
  322. package/dist/icons/snapshots.js +45 -0
  323. package/dist/icons/snip.d.ts +2 -0
  324. package/dist/icons/snip.js +63 -0
  325. package/dist/icons/spirit-house.d.ts +2 -0
  326. package/dist/icons/spirit-house.js +73 -0
  327. package/dist/icons/ssl-certificate.d.ts +2 -0
  328. package/dist/icons/ssl-certificate.js +56 -0
  329. package/dist/icons/star.d.ts +2 -0
  330. package/dist/icons/star.js +16 -0
  331. package/dist/icons/stock.d.ts +2 -0
  332. package/dist/icons/stock.js +62 -0
  333. package/dist/icons/storage-array.d.ts +2 -0
  334. package/dist/icons/storage-array.js +40 -0
  335. package/dist/icons/storm.d.ts +2 -0
  336. package/dist/icons/storm.js +43 -0
  337. package/dist/icons/street-food-cart.d.ts +2 -0
  338. package/dist/icons/street-food-cart.js +66 -0
  339. package/dist/icons/street-kit.d.ts +19 -0
  340. package/dist/icons/street-kit.js +67 -0
  341. package/dist/icons/street-sign.d.ts +2 -0
  342. package/dist/icons/street-sign.js +42 -0
  343. package/dist/icons/studio-monitors.d.ts +2 -0
  344. package/dist/icons/studio-monitors.js +67 -0
  345. package/dist/icons/sun.d.ts +2 -0
  346. package/dist/icons/sun.js +40 -0
  347. package/dist/icons/support.d.ts +2 -0
  348. package/dist/icons/support.js +48 -0
  349. package/dist/icons/switch.d.ts +2 -0
  350. package/dist/icons/switch.js +34 -0
  351. package/dist/icons/tablet.d.ts +2 -0
  352. package/dist/icons/tablet.js +44 -0
  353. package/dist/icons/tape-library.d.ts +2 -0
  354. package/dist/icons/tape-library.js +48 -0
  355. package/dist/icons/temple-donation.d.ts +2 -0
  356. package/dist/icons/temple-donation.js +60 -0
  357. package/dist/icons/tent.d.ts +2 -0
  358. package/dist/icons/tent.js +66 -0
  359. package/dist/icons/terminal.d.ts +2 -0
  360. package/dist/icons/terminal.js +56 -0
  361. package/dist/icons/thai-house.d.ts +2 -0
  362. package/dist/icons/thai-house.js +85 -0
  363. package/dist/icons/thai-lantern.d.ts +2 -0
  364. package/dist/icons/thai-lantern.js +61 -0
  365. package/dist/icons/thinkpad-l380.d.ts +2 -0
  366. package/dist/icons/thinkpad-l380.js +54 -0
  367. package/dist/icons/timer.d.ts +2 -0
  368. package/dist/icons/timer.js +59 -0
  369. package/dist/icons/train-ticket.d.ts +2 -0
  370. package/dist/icons/train-ticket.js +57 -0
  371. package/dist/icons/trash.d.ts +2 -0
  372. package/dist/icons/trash.js +62 -0
  373. package/dist/icons/tree.d.ts +2 -0
  374. package/dist/icons/tree.js +40 -0
  375. package/dist/icons/tuk-tuk.d.ts +2 -0
  376. package/dist/icons/tuk-tuk.js +45 -0
  377. package/dist/icons/tulip.d.ts +2 -0
  378. package/dist/icons/tulip.js +56 -0
  379. package/dist/icons/tunnel.d.ts +2 -0
  380. package/dist/icons/tunnel.js +50 -0
  381. package/dist/icons/two-factor.d.ts +2 -0
  382. package/dist/icons/two-factor.js +81 -0
  383. package/dist/icons/ups.d.ts +2 -0
  384. package/dist/icons/ups.js +37 -0
  385. package/dist/icons/usb-drive.d.ts +2 -0
  386. package/dist/icons/usb-drive.js +35 -0
  387. package/dist/icons/verified.d.ts +2 -0
  388. package/dist/icons/verified.js +32 -0
  389. package/dist/icons/virtual-machine.d.ts +2 -0
  390. package/dist/icons/virtual-machine.js +66 -0
  391. package/dist/icons/volume.d.ts +6 -0
  392. package/dist/icons/volume.js +35 -0
  393. package/dist/icons/vpn-gateway.d.ts +2 -0
  394. package/dist/icons/vpn-gateway.js +51 -0
  395. package/dist/icons/wake-on-lan.d.ts +2 -0
  396. package/dist/icons/wake-on-lan.js +40 -0
  397. package/dist/icons/wallet.d.ts +3 -0
  398. package/dist/icons/wallet.js +55 -0
  399. package/dist/icons/water-jar.d.ts +2 -0
  400. package/dist/icons/water-jar.js +72 -0
  401. package/dist/icons/wooden-window.d.ts +2 -0
  402. package/dist/icons/wooden-window.js +65 -0
  403. package/dist/index.d.ts +2 -0
  404. package/dist/index.js +4 -0
  405. package/dist/iso.d.ts +32 -0
  406. package/dist/iso.js +64 -0
  407. package/dist/load.d.ts +199 -0
  408. package/dist/load.js +199 -0
  409. package/dist/motions.d.ts +68 -0
  410. package/dist/motions.js +446 -0
  411. package/dist/sticker.d.ts +269 -0
  412. package/dist/sticker.js +1009 -0
  413. package/package.json +101 -4
@@ -0,0 +1,50 @@
1
+ // Drawn for @20baht/stickers: rent; a condo block in 3d (see iso.ts) and the room key turning in front of it.
2
+ import { hop, twist, twinkle } from '../motions.js';
3
+ import { ellipse, rect } from '../sticker.js';
4
+ import { block, faceOf, quad, solid } from '../iso.js';
5
+ import { EXT, FACE, glow, LINE } from './shared.js';
6
+ const W = 170;
7
+ const D = 150;
8
+ const H = 290;
9
+ const TOWER = block([-W / 2, -D / 2, 0], [W, 0, 0], [0, D, 0], [0, 0, H]);
10
+ const front = faceOf(TOWER, 'front');
11
+ const side = faceOf(TOWER, 'right');
12
+ const windows = (f, cols) => [0.72, 0.52, 0.32].flatMap((t) => cols.map((s) => ({ d: quad(f, s, t, 0.22, 0.12, 2), fill: 'tint' })));
13
+ export const rent = {
14
+ name: 'rent',
15
+ frames: 180,
16
+ line: LINE,
17
+ extrude: EXT,
18
+ layers: [
19
+ { id: 'root', p: [230, 400], m: { ...hop, k: 0.4 }, shapes: [] },
20
+ {
21
+ parent: 'root',
22
+ shapes: [
23
+ ...solid(TOWER, { fill: 'grey', top: 'white', front: 'white' }, 4),
24
+ ...windows(front, [0.14, 0.44, 0.74]),
25
+ ...windows(side, [0.2, 0.58]),
26
+ { d: quad(front, 0.36, 0, 0.28, 0.16, 3), fill: 'main' },
27
+ ],
28
+ },
29
+ {
30
+ id: 'key',
31
+ parent: 'root',
32
+ a: [150, -90],
33
+ p: [150, -90],
34
+ m: { ...twist, at: 20 },
35
+ shapes: [],
36
+ },
37
+ {
38
+ parent: 'key',
39
+ tilt: FACE,
40
+ shapes: [
41
+ { d: rect(100, -104, 120, 26, 8), fill: 'gold', depth: 0.6 },
42
+ { d: rect(176, -78, 18, 26, 4), fill: 'gold', depth: 0.6 },
43
+ { d: rect(150, -78, 16, 18, 4), fill: 'gold', depth: 0.6 },
44
+ { d: ellipse(80, -91, 46), fill: 'gold', depth: 0.6 },
45
+ { d: ellipse(70, -91, 14), fill: 'white' },
46
+ ],
47
+ },
48
+ glow('root', [-140, -330], 24, [twinkle(40), twinkle(140, true)]),
49
+ ],
50
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const rock: Icon;
@@ -0,0 +1,80 @@
1
+ // Drawn for @20baht/stickers: a mossy boulder slab on the leaned face with a pebble, a sprout growing out of it.
2
+ import { SNAP, twinkle } from '../motions.js';
3
+ import { ellipse, line, poly } from '../sticker.js';
4
+ import { EXT, FACE, glow, LINE } from './shared.js';
5
+ import { arcPts } from './sky-kit.js';
6
+ const leaf = (x, y, dir) => {
7
+ const tip = [x + 48 * dir, y - 30];
8
+ return poly([
9
+ [x, y],
10
+ ...arcPts((x + tip[0]) / 2, (y + tip[1]) / 2, 30, dir > 0 ? 150 : 30, dir > 0 ? 330 : -150, 12),
11
+ tip,
12
+ ], 0);
13
+ };
14
+ export const rock = {
15
+ name: 'rock',
16
+ frames: 160,
17
+ still: 100,
18
+ line: LINE,
19
+ extrude: EXT,
20
+ layers: [
21
+ { id: 'rock', p: [250, 290], shapes: [] },
22
+ {
23
+ id: 'face',
24
+ parent: 'rock',
25
+ tilt: FACE,
26
+ shapes: [
27
+ { d: ellipse(150, 60, 40, 30), fill: 'grey', depth: 0.8 },
28
+ {
29
+ d: poly([
30
+ [-150, 50],
31
+ [-136, -20],
32
+ [-80, -86],
33
+ [10, -104],
34
+ [96, -72],
35
+ [140, 0],
36
+ [118, 74],
37
+ [-90, 86],
38
+ ], 36),
39
+ fill: 'grey',
40
+ side: 'deep',
41
+ depth: 1.6,
42
+ },
43
+ {
44
+ d: poly([
45
+ [-110, -30],
46
+ [-70, -76],
47
+ [8, -94],
48
+ [80, -64],
49
+ [60, -36],
50
+ [10, -48],
51
+ [-40, -24],
52
+ ], 18),
53
+ fill: 'ok',
54
+ depth: 0.2,
55
+ },
56
+ { d: line([-40, 20], [10, 40]) },
57
+ { d: line([60, 30], [80, 54]) },
58
+ ],
59
+ },
60
+ {
61
+ parent: 'face',
62
+ a: [20, -80],
63
+ p: [20, -80],
64
+ m: {
65
+ s: [
66
+ [10, [0, 0], SNAP],
67
+ [50, [100, 100], 0],
68
+ [126, [100, 100], SNAP],
69
+ [152, [0, 0]],
70
+ ],
71
+ },
72
+ shapes: [
73
+ { d: line([20, -80], [20, -150]), line: 8, round: true },
74
+ { d: leaf(20, -140, -1), fill: 'ok', depth: 0.3 },
75
+ { d: leaf(20, -120, 1), fill: 'ok', depth: 0.3 },
76
+ ],
77
+ },
78
+ glow('rock', [160, -150], 22, [twinkle(50), twinkle(130, true)]),
79
+ ],
80
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const router: Icon;
@@ -0,0 +1,59 @@
1
+ // Drawn for @20baht/stickers after the network diagrams of Protocol Explorer, modelled in 3d (see iso.ts).
2
+ import { erase, nudge, twinkle, wiggle } from '../motions.js';
3
+ import { arc } from '../sticker.js';
4
+ import { block, dot, faceOf, ISO, quad, solid } from '../iso.js';
5
+ import { glow, LINE } from './shared.js';
6
+ // A low box with its lights and ports on the front, two antennas standing from the back of the lid
7
+ const H = 56;
8
+ const BOX = block([-150, -70, 0], [300, 0, 0], [0, 140, 0], [0, 0, H]);
9
+ const front = faceOf(BOX, 'front');
10
+ // each antenna rocks from where it plugs into the top, near the back edge
11
+ const antenna = (x, at, k) => {
12
+ const base = ISO([x + 8, 46, H]);
13
+ return {
14
+ parent: 'box',
15
+ a: base,
16
+ p: base,
17
+ m: { ...wiggle, at, k },
18
+ shapes: [
19
+ ...solid(block([x, 38, H], [16, 0, 0], [0, 16, 0], [0, 0, 140]), { fill: 'deep', top: 'gold' }, 2),
20
+ ],
21
+ };
22
+ };
23
+ // the signal: three arcs over the box, erased and redrawn outward on the beat
24
+ const WAVES = [44, 74, 104].map((r, i) => ({
25
+ d: arc(0, 0, r, 220, 320),
26
+ trim: erase(30 + i * 6, 96 + i * 6),
27
+ round: true,
28
+ }));
29
+ export const router = {
30
+ name: 'router',
31
+ frames: 180,
32
+ // the arcs are all drawn back in by here
33
+ still: 150,
34
+ line: LINE,
35
+ extrude: [0, 0],
36
+ layers: [
37
+ { id: 'box', p: [250, 360], m: nudge, shapes: [] },
38
+ {
39
+ parent: 'box',
40
+ shapes: [
41
+ ...solid(BOX, { fill: 'deep', top: 'main' }, 4),
42
+ { d: quad(front, 0.06, 0.25, 0.5, 0.5, 4), fill: 'tint' },
43
+ ...['ok', 'ok', 'gold', 'ok'].map((fill, i) => ({
44
+ d: dot(front, 0.13 + i * 0.12, 0.5, 0.03, 0.13),
45
+ fill,
46
+ })),
47
+ ...[0, 1].map((i) => ({
48
+ d: quad(front, 0.68 + i * 0.1, 0.28, 0.06, 0.44, 2),
49
+ fill: 'ink',
50
+ line: false,
51
+ })),
52
+ ],
53
+ },
54
+ antenna(-120, 4, 1),
55
+ antenna(104, 9, 0.8),
56
+ { parent: 'box', p: [10, -178], shapes: WAVES },
57
+ glow('box', [170, -190], 22, [twinkle(48), twinkle(140, true)]),
58
+ ],
59
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const salary: Icon;
@@ -0,0 +1,54 @@
1
+ // Drawn for @20baht/stickers: a pay envelope with a payslip window; a banknote slides out of it and back.
2
+ import { jolt, slide, twinkle } from '../motions.js';
3
+ import { ellipse, line, poly, rect } from '../sticker.js';
4
+ import { EXT, FACE, glow, LINE } from './shared.js';
5
+ export const salary = {
6
+ name: 'salary',
7
+ frames: 180,
8
+ still: 90,
9
+ line: LINE,
10
+ extrude: EXT,
11
+ layers: [
12
+ { id: 'env', a: [0, 120], p: [250, 350], m: jolt([-4, 10]), shapes: [] },
13
+ {
14
+ id: 'back',
15
+ parent: 'env',
16
+ tilt: FACE,
17
+ shapes: [
18
+ {
19
+ d: poly([
20
+ [-140, -70],
21
+ [-110, -130],
22
+ [110, -130],
23
+ [140, -70],
24
+ ], [4, 10, 10, 4]),
25
+ fill: 'gold',
26
+ depth: 0.6,
27
+ },
28
+ { d: rect(-140, -80, 280, 180, 12), fill: 'gold', depth: 1 },
29
+ ],
30
+ },
31
+ {
32
+ parent: 'back',
33
+ m: slide([0, -86], 22, 70, 36),
34
+ shapes: [
35
+ { d: rect(-116, -74, 232, 120, 8), fill: 'ok', depth: 0.25 },
36
+ { d: rect(-104, -62, 208, 96, 4) },
37
+ { d: ellipse(0, -14, 30), fill: 'white' },
38
+ { d: line([-8, -26], [-8, -2]) },
39
+ ],
40
+ },
41
+ {
42
+ parent: 'back',
43
+ shapes: [
44
+ { d: rect(-140, -30, 280, 130, 12), fill: 'gold', depth: 1 },
45
+ { d: rect(-114, -6, 140, 80, 6), fill: 'white', depth: 0.2 },
46
+ { d: line([-100, 14], [8, 14]) },
47
+ { d: line([-100, 36], [-20, 36]) },
48
+ { d: line([-100, 56], [-40, 56]) },
49
+ { d: rect(52, 6, 62, 34, 4), fill: 'main', depth: 0.2 },
50
+ ],
51
+ },
52
+ glow('env', [150, -170], 24, [twinkle(58), twinkle(140, true)]),
53
+ ],
54
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const savingStreak: Icon;
@@ -0,0 +1,66 @@
1
+ // Drawn for @20baht/stickers: a saving streak; a flame burns over a week card whose days light up one by one.
2
+ import { flicker, hop, twinkle } from '../motions.js';
3
+ import { ellipse, rect, star } from '../sticker.js';
4
+ import { FACE, EXT, glow, LINE } from './shared.js';
5
+ const n = (v) => v.toFixed(1);
6
+ // one command list for every frame of the flame, so the shapes morph
7
+ const flame = (w, h, t, b) => `M0 ${n(b)}C${n(-w * 1.15)} ${n(b)} ${n(-w * 1.1)} ${n(b - h * 0.45)} ${n(-w * 0.35 + t)} ${n(b - h * 0.72)}` +
8
+ `C${n(-w * 0.1 + t)} ${n(b - h * 0.86)} ${n(t * 1.4)} ${n(b - h * 0.9)} ${n(t * 1.6)} ${n(b - h)}` +
9
+ `C${n(w * 0.8 + t)} ${n(b - h * 0.72)} ${n(w * 1.15)} ${n(b - h * 0.42)} ${n(w * 0.95)} ${n(b - h * 0.2)}` +
10
+ `C${n(w * 0.8)} ${n(b - h * 0.04)} ${n(w * 0.45)} ${n(b)} 0 ${n(b)}Z`;
11
+ const SWAY = [
12
+ [1, 1, 0],
13
+ [0.95, 1.08, 10],
14
+ [1.04, 0.93, -8],
15
+ [0.98, 1.04, 5],
16
+ ];
17
+ const DAYS = [-108, -72, -36, 0, 36, 72, 108];
18
+ export const savingStreak = {
19
+ name: 'saving-streak',
20
+ frames: 180,
21
+ still: 110,
22
+ line: LINE,
23
+ extrude: EXT,
24
+ layers: [
25
+ { id: 'root', p: [250, 250], shapes: [] },
26
+ {
27
+ parent: 'root',
28
+ tilt: FACE,
29
+ a: [0, 70],
30
+ p: [0, 70],
31
+ m: { ...hop, k: 0.4, at: 84 },
32
+ shapes: [
33
+ {
34
+ d: flicker(SWAY.map(([w, h, t]) => flame(70 * w, 220 * h, t, 70)), 45),
35
+ fill: 'hot',
36
+ depth: 0.6,
37
+ },
38
+ {
39
+ d: flicker(SWAY.map(([w, h, t]) => flame(36 * w, 110 * h, t * 0.6, 70)), 45),
40
+ fill: 'gold',
41
+ },
42
+ ],
43
+ },
44
+ {
45
+ id: 'card',
46
+ parent: 'root',
47
+ tilt: FACE,
48
+ shapes: [
49
+ { d: rect(-150, 60, 300, 100, 20), fill: 'white', depth: 0.7 },
50
+ ...DAYS.map((x) => ({ d: ellipse(x, 110, 13), fill: 'tint' })),
51
+ ],
52
+ },
53
+ ...DAYS.map((x, i) => ({
54
+ parent: 'card',
55
+ a: [x, 110],
56
+ p: [x, 110],
57
+ m: [twinkle(16 + i * 10), twinkle(118 + i * 3, true)],
58
+ shapes: [
59
+ i === DAYS.length - 1
60
+ ? { d: star(x, 110, 20), fill: 'gold', depth: 0.3 }
61
+ : { d: ellipse(x, 110, 13), fill: 'ok', depth: 0.2 },
62
+ ],
63
+ })),
64
+ glow('root', [140, -150], 24, [twinkle(86), twinkle(140, true)]),
65
+ ],
66
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const scanSlip: Icon;
@@ -0,0 +1,53 @@
1
+ // Drawn for @20baht/stickers: scanning a transfer slip; the scan line sweeps the slip on the phone, then a check pops.
2
+ import { jolt, slide, twinkle } from '../motions.js';
3
+ import { ellipse, line, rect } from '../sticker.js';
4
+ import { EXT, FACE, glow, LINE } from './shared.js';
5
+ // viewfinder corners around the slip
6
+ const CORNERS = [
7
+ line([-72, -104], [-72, -132], [-44, -132]),
8
+ line([72, -104], [72, -132], [44, -132]),
9
+ line([-72, 46], [-72, 74], [-44, 74]),
10
+ line([72, 46], [72, 74], [44, 74]),
11
+ ].map((d) => ({ d }));
12
+ export const scanSlip = {
13
+ name: 'scan-slip',
14
+ frames: 180,
15
+ still: 100,
16
+ line: LINE,
17
+ extrude: EXT,
18
+ layers: [
19
+ { id: 'ph', p: [250, 250], m: { ...jolt(), at: 60 }, shapes: [] },
20
+ {
21
+ id: 'scr',
22
+ parent: 'ph',
23
+ tilt: FACE,
24
+ shapes: [
25
+ { d: rect(-96, -172, 192, 344, 32), fill: 'deep', depth: 0.8 },
26
+ { d: rect(-84, -160, 168, 320, 24), fill: 'tint' },
27
+ { d: rect(-56, -118, 112, 178, 8), fill: 'white', depth: 0.2 },
28
+ { d: line([-38, -94], [38, -94]) },
29
+ { d: rect(-38, -74, 76, 26, 6), fill: 'gold' },
30
+ { d: line([-38, -26], [38, -26]) },
31
+ { d: line([-38, -6], [14, -6]) },
32
+ { d: rect(-38, 14, 30, 30, 3), fill: 'grey' },
33
+ ...CORNERS,
34
+ ],
35
+ },
36
+ {
37
+ parent: 'scr',
38
+ m: slide([0, 200], 10, 10, 50),
39
+ shapes: [{ d: rect(-76, -134, 152, 6, 3), fill: 'main', line: 3 }],
40
+ },
41
+ {
42
+ parent: 'scr',
43
+ a: [0, 116],
44
+ p: [0, 116],
45
+ m: [twinkle(60), twinkle(148, true)],
46
+ shapes: [
47
+ { d: ellipse(0, 116, 30), fill: 'ok', depth: 0.3 },
48
+ { d: line([-13, 116], [-3, 127], [15, 104]) },
49
+ ],
50
+ },
51
+ glow('ph', [130, -180], 22, [twinkle(64), twinkle(140, true)]),
52
+ ],
53
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const scissors: Icon;
@@ -0,0 +1,52 @@
1
+ // Drawn for @20baht/stickers: scissors snipping twice, each blade turning on the screw.
2
+ import { jolt, SNAP, twinkle } from '../motions.js';
3
+ import { ellipse, poly, ring } from '../sticker.js';
4
+ import { EXT, FACE, glow, LINE } from './shared.js';
5
+ const SNIPS = [
6
+ [8, 0, SNAP],
7
+ [20, 1, 0],
8
+ [32, 0, SNAP],
9
+ [44, 1, 0],
10
+ [56, 0],
11
+ ];
12
+ const half = (dir, fill) => ({
13
+ parent: 'sc',
14
+ m: { r: SNIPS.map(([f, k, e]) => [f, k * 14 * dir, e]) },
15
+ shapes: [
16
+ {
17
+ d: poly([
18
+ [-10, -12 * dir],
19
+ [190, -34 * dir],
20
+ [196, -26 * dir],
21
+ [10, 12 * dir],
22
+ ], 4),
23
+ fill: 'white',
24
+ depth: 0.5,
25
+ },
26
+ { d: ring(-90, 52 * dir, 44, 24), fill, depth: 0.8 },
27
+ {
28
+ d: poly([
29
+ [-60, 26 * dir],
30
+ [-10, -8 * dir],
31
+ [6, 10 * dir],
32
+ [-56, 40 * dir],
33
+ ], 4),
34
+ fill,
35
+ depth: 0.8,
36
+ },
37
+ ],
38
+ });
39
+ export const scissors = {
40
+ name: 'scissors',
41
+ frames: 150,
42
+ line: LINE,
43
+ extrude: EXT,
44
+ layers: [
45
+ { id: 'root', p: [200, 260], m: { ...jolt([6, 4]), at: 50 }, shapes: [] },
46
+ { id: 'sc', parent: 'root', tilt: FACE, shapes: [] },
47
+ half(1, 'hot'),
48
+ half(-1, 'main'),
49
+ { parent: 'sc', shapes: [{ d: ellipse(0, 0, 12), fill: 'grey', depth: 1 }] },
50
+ glow('root', [180, -90], 22, [twinkle(22), twinkle(120, true)]),
51
+ ],
52
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const serverCabinet: Icon;
@@ -0,0 +1,49 @@
1
+ // Drawn for @20baht/stickers, modelled in 3d (see iso.ts).
2
+ import { hop, slide, twinkle } from '../motions.js';
3
+ import { block, dot, faceOf, ISO, quad, solid, stroke } from '../iso.js';
4
+ import { glow, LINE } from './shared.js';
5
+ // A 42U cabinet with its door off: a white frame round a dark bay of stacked units, each with its lights
6
+ const W = 150;
7
+ const D = 170;
8
+ const H = 270;
9
+ const CAB = block([-W / 2, -D / 2, 0], [W, 0, 0], [0, D, 0], [0, 0, H]);
10
+ const front = faceOf(CAB, 'front');
11
+ // a unit sits flush in the bay: a pale face, a handle line and two lights
12
+ const unit = (z, h, fill, light, out = 0) => {
13
+ const b = block([-W / 2 + 16, -D / 2 - 6 - out, z], [W - 32, 0, 0], [0, 6, 0], [0, 0, h]);
14
+ const f = faceOf(b, 'front');
15
+ return [
16
+ ...solid(b, { fill: 'grey', front: fill }, 2),
17
+ { d: stroke(f, [0.1, 0.5], [0.5, 0.5]) },
18
+ { d: dot(f, 0.72, 0.5, 0.045, 0.045 * ((W - 32) / h)), fill: light },
19
+ { d: dot(f, 0.86, 0.5, 0.045, 0.045 * ((W - 32) / h)), fill: 'ok' },
20
+ ];
21
+ };
22
+ export const serverCabinet = {
23
+ name: 'server-cabinet',
24
+ frames: 180,
25
+ line: LINE,
26
+ extrude: [0, 0],
27
+ layers: [
28
+ { id: 'cab', p: [250, 372], m: { ...hop, k: 0.45 }, shapes: [] },
29
+ {
30
+ parent: 'cab',
31
+ shapes: [
32
+ ...solid(CAB, { fill: 'grey', top: 'white', front: 'white' }, 3),
33
+ { d: quad(front, 0.07, 0.05, 0.86, 0.9, 3), fill: 'deep' },
34
+ ...[0.1, 0.14].map((t) => ({ d: stroke(front, [0.25, t], [0.75, t]) })),
35
+ ...unit(206, 36, 'tint', 'gold'),
36
+ ...unit(160, 36, 'main', 'ok'),
37
+ ...unit(68, 36, 'main', 'ok'),
38
+ ...unit(24, 36, 'tint', 'ok'),
39
+ ],
40
+ },
41
+ // one server slides out on its rails and back in
42
+ {
43
+ parent: 'cab',
44
+ m: slide(ISO([0, -26, 0]), 24, 40, 40),
45
+ shapes: unit(114, 36, 'tint', 'gold'),
46
+ },
47
+ glow('cab', [104, -300], 24, [twinkle(50), twinkle(140, true)]),
48
+ ],
49
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const server: Icon;
@@ -0,0 +1,41 @@
1
+ // Drawn for @20baht/stickers after the network diagrams of Protocol Explorer, modelled in 3d (see iso.ts).
2
+ import { slide, sway, twinkle } from '../motions.js';
3
+ import { block, dot, faceOf, ISO, solid, stroke } from '../iso.js';
4
+ import { glow, LINE } from './shared.js';
5
+ // A tower server: tall white body, three drive bays standing proud of the front, vents under them
6
+ const W = 150;
7
+ const D = 210;
8
+ const H = 300;
9
+ const TOWER = block([-W / 2, -D / 2, 0], [W, 0, 0], [0, D, 0], [0, 0, H]);
10
+ const front = faceOf(TOWER, 'front');
11
+ // a bay is a thin block on the front: a handle groove and a light on its face
12
+ const bay = (z, light) => {
13
+ const b = block([-W / 2 + 14, -D / 2 - 8, z], [W - 28, 0, 0], [0, 8, 0], [0, 0, 56]);
14
+ const f = faceOf(b, 'front');
15
+ return [
16
+ ...solid(b, { fill: 'grey', front: 'tint' }, 2),
17
+ { d: stroke(f, [0.12, 0.5], [0.62, 0.5]) },
18
+ { d: dot(f, 0.82, 0.5, 0.07, 0.16), fill: light },
19
+ ];
20
+ };
21
+ export const server = {
22
+ name: 'server',
23
+ frames: 180,
24
+ line: LINE,
25
+ extrude: [0, 0],
26
+ layers: [
27
+ { id: 'tower', a: [0, 0], p: [248, 400], m: { ...sway, k: 0.5 }, shapes: [] },
28
+ {
29
+ parent: 'tower',
30
+ shapes: [
31
+ ...solid(TOWER, { fill: 'grey', top: 'white', front: 'white' }, 3),
32
+ ...[0.1, 0.15, 0.2].map((t) => ({ d: stroke(front, [0.2, t], [0.8, t]) })),
33
+ ...bay(220, 'ok'),
34
+ ...bay(80, 'ok'),
35
+ ],
36
+ },
37
+ // the middle drive slides out towards the viewer and is pushed home
38
+ { parent: 'tower', m: slide(ISO([0, -22, 0]), 20, 40, 40), shapes: bay(150, 'gold') },
39
+ glow('tower', [110, -330], 24, [twinkle(52), twinkle(140, true)]),
40
+ ],
41
+ };
@@ -0,0 +1,8 @@
1
+ import type { Layer, Motion, Vec } from '../sticker.js';
2
+ export declare const LINE = 5;
3
+ export declare const FACE: readonly [-18, 36], EXT: readonly [-4, 18];
4
+ export declare const glow: (parent: string, p: Vec, r: number, m: Motion | readonly Motion[], extra?: {
5
+ ip?: number;
6
+ op?: number;
7
+ }) => Layer;
8
+ export declare const inset: (d: string, k: number, [cx, cy]: Vec) => string;
@@ -0,0 +1,18 @@
1
+ // Helpers the worked icons share: line weight, the house view, sparkles.
2
+ // From fun-isometric by Kelvin Adithya (MIT, see LICENSE).
3
+ import { spark, VIEWS } from '../sticker.js';
4
+ // colours are palette slots, so draw(..., palette) or play(..., { palette }) recolours the whole set
5
+ export const LINE = 5;
6
+ // the house view: faces turned 18 degrees in their plane and leaned back 36, sides falling down left
7
+ export const { tilt: FACE, extrude: EXT } = VIEWS.right;
8
+ // a white sparkle riding a parent, popped by whatever motion it is given
9
+ export const glow = (parent, p, r, m, extra = {}) => ({
10
+ parent,
11
+ a: p,
12
+ p,
13
+ m,
14
+ ...extra,
15
+ shapes: [{ d: spark(p[0], p[1], r), fill: 'white' }],
16
+ });
17
+ // grows or shrinks a path of plain x y pairs about a point, for rims and insets
18
+ export const inset = (d, k, [cx, cy]) => d.replace(/(-?\d+\.?\d*) (-?\d+\.?\d*)/g, (_, x, y) => `${+(cx + (+x - cx) * k).toFixed(2)} ${+(cy + (+y - cy) * k).toFixed(2)}`);
@@ -0,0 +1,3 @@
1
+ import type { Icon } from '../sticker.js';
2
+ /** A shield hopping with a check on its face: you decide who gets in. */
3
+ export declare const shield: Icon;
@@ -0,0 +1,28 @@
1
+ // From identity-service's sticker set, drawn on the fun-isometric kit by Kelvin Adithya (MIT, see LICENSE).
2
+ import { hop, twinkle } from '../motions.js';
3
+ import { line } from '../sticker.js';
4
+ import { EXT, glow, inset, LINE } from './shared.js';
5
+ const SHIELD = 'M0 -132C40 -112 76 -104 112 -104C112 -10 104 72 0 128C-104 72 -112 -10 -112 -104C-76 -104 -40 -112 0 -132Z';
6
+ /** A shield hopping with a check on its face: you decide who gets in. */
7
+ export const shield = {
8
+ name: 'shield',
9
+ frames: 123,
10
+ line: LINE,
11
+ extrude: EXT,
12
+ layers: [
13
+ { id: 'shield', p: [250, 260], m: hop, shapes: [] },
14
+ {
15
+ parent: 'shield',
16
+ tilt: [-14, 26],
17
+ shapes: [
18
+ { d: SHIELD, fill: 'main', depth: 1, edges: [[0, 128]] },
19
+ { d: inset(SHIELD, 0.74, [0, -6]), fill: 'tint' },
20
+ { d: line([-42, -6], [-10, 28], [48, -40]), line: 16, round: true },
21
+ ],
22
+ },
23
+ glow('shield', [126, -118], 28, twinkle(0, true), { op: 30 }),
24
+ glow('shield', [126, -118], 28, twinkle(48), { ip: 48 }),
25
+ glow('shield', [-148, 20], 18, twinkle(6, true), { op: 36 }),
26
+ glow('shield', [-148, 20], 18, twinkle(56), { ip: 56 }),
27
+ ],
28
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const shootingStar: Icon;
@@ -0,0 +1,37 @@
1
+ // Drawn for @20baht/stickers: a 3d star streaking in from the top left, its trail drawn behind it then gone.
2
+ import { deal, OUT, SNAP, twinkle } from '../motions.js';
3
+ import { line } from '../sticker.js';
4
+ import { glow, LINE } from './shared.js';
5
+ import { starPrism } from './sky-kit.js';
6
+ const TRAIL = [
7
+ [8, 0, OUT],
8
+ [44, 1, 0],
9
+ [90, 1, SNAP],
10
+ [116, 0],
11
+ ];
12
+ export const shootingStar = {
13
+ name: 'shooting-star',
14
+ frames: 160,
15
+ still: 70,
16
+ line: LINE,
17
+ extrude: [0, 0],
18
+ layers: [
19
+ { id: 'sky', p: [300, 300], shapes: [] },
20
+ {
21
+ parent: 'sky',
22
+ shapes: [-26, 0, 26].map((o, i) => ({
23
+ d: line([-205 + o * 0.6, -89 - o * 0.8 + i * 4], [-55 + o * 0.6, 21 - o * 0.8]),
24
+ line: 9,
25
+ round: true,
26
+ trim: TRAIL,
27
+ })),
28
+ },
29
+ {
30
+ id: 'st',
31
+ parent: 'sky',
32
+ m: [deal([-150, -118], -40, 8), twinkle(0), twinkle(118, true)],
33
+ shapes: starPrism([0, 0, -70], 80, 30, 'gold', 'gold'),
34
+ },
35
+ glow('sky', [90, -110], 22, [twinkle(54), twinkle(120, true)]),
36
+ ],
37
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const shoppingBox: Icon;