@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,46 @@
1
+ // Drawn for @20baht/stickers: a twin-bell alarm clock modelled in 3d (see object-drum.ts); it rings and rocks.
2
+ import { twinkle, wiggle } from '../motions.js';
3
+ import { line } from '../sticker.js';
4
+ import { ISO } from '../iso.js';
5
+ import { drum } from './object-drum.js';
6
+ import { glow, LINE } from './shared.js';
7
+ // the face looks at the viewer: the body's axis runs from the back (+y) towards the front (-y)
8
+ const BODY = drum([0, 40, 130], [0, -64, 0], 104, 104, { side: 'hot', cap: 'white' }, [0, 0, 1]);
9
+ const bell = (x) => drum([x, 10, 214], [x * 0.18, 0, 30], 40, 14, { side: 'hot', cap: 'hot' });
10
+ const LEFT = bell(-58);
11
+ const RIGHT = bell(58);
12
+ const ticks = Array.from({ length: 12 }, (_, i) => {
13
+ const g = (i / 12) * Math.PI * 2;
14
+ const r0 = i % 3 ? 0.78 : 0.7;
15
+ return {
16
+ d: line(BODY.at(Math.cos(g) * r0, Math.sin(g) * r0), BODY.at(Math.cos(g) * 0.86, Math.sin(g) * 0.86)),
17
+ line: 4,
18
+ };
19
+ });
20
+ export const alarmClock = {
21
+ name: 'alarm-clock',
22
+ frames: 180,
23
+ line: LINE,
24
+ extrude: [0, 0],
25
+ layers: [
26
+ { id: 'clock', a: ISO([0, 0, 0]), p: [250, 380], m: { ...wiggle, k: 0.6 }, shapes: [] },
27
+ {
28
+ parent: 'clock',
29
+ shapes: [
30
+ { d: line(ISO([-60, 10, 40]), ISO([-80, 10, 0])), line: 12 },
31
+ { d: line(ISO([60, 10, 40]), ISO([80, 10, 0])), line: 12 },
32
+ { d: line(ISO([0, 10, 234]), ISO([0, 10, 262])), line: 8 },
33
+ ...LEFT.shapes,
34
+ ...RIGHT.shapes,
35
+ ...BODY.shapes,
36
+ { d: BODY.disc(0, 0, 0.9), fill: 'tint' },
37
+ ...ticks,
38
+ { d: line(BODY.at(0, 0), BODY.at(0, 0.56)), line: 8, round: true },
39
+ { d: line(BODY.at(0, 0), BODY.at(0.42, -0.18)), line: 8, round: true },
40
+ { d: BODY.disc(0, 0, 0.08), fill: 'hot' },
41
+ ],
42
+ },
43
+ glow('clock', [-150, -280], 20, [twinkle(46), twinkle(130, true)]),
44
+ glow('clock', [140, -290], 24, [twinkle(50), twinkle(136, true)]),
45
+ ],
46
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const allInOne: Icon;
@@ -0,0 +1,37 @@
1
+ // Drawn for @20baht/stickers after the network diagrams of Protocol Explorer, modelled in 3d (see iso.ts).
2
+ import { erase, jolt, twinkle } from '../motions.js';
3
+ import { block, faceOf, quad, solid, stroke } from '../iso.js';
4
+ import { glow, LINE } from './shared.js';
5
+ // An all-in-one desktop: a thin screen with a chin, on a neck and a flat foot, no logo
6
+ const FOOT = block([-62, -36, 0], [124, 0, 0], [0, 96, 0], [0, 0, 10]);
7
+ const NECK = block([-22, 30, 10], [44, 0, 0], [0, 12, 0], [0, 0, 62]);
8
+ const PANEL = block([-146, 12, 62], [292, 0, 0], [0, 12, 0], [0, 0, 200]);
9
+ const front = faceOf(PANEL, 'front');
10
+ export const allInOne = {
11
+ name: 'all-in-one',
12
+ frames: 180,
13
+ // the lines are all drawn back in by here
14
+ still: 150,
15
+ line: LINE,
16
+ extrude: [0, 0],
17
+ layers: [
18
+ { id: 'aio', p: [250, 370], m: jolt([-6, 10]), shapes: [] },
19
+ {
20
+ parent: 'aio',
21
+ shapes: [
22
+ ...solid(FOOT, { fill: 'grey', top: 'white' }, 4),
23
+ ...solid(NECK, { fill: 'grey', front: 'white' }, 2),
24
+ ...solid(PANEL, { fill: 'grey', front: 'white' }, 6),
25
+ // the chin is the white strip left under the bezel
26
+ { d: quad(front, 0.04, 0.2, 0.92, 0.76, 4), fill: 'ink', line: false },
27
+ { d: quad(front, 0.06, 0.23, 0.88, 0.7, 3), fill: 'deep' },
28
+ { d: quad(front, 0.1, 0.32, 0.34, 0.52, 4), fill: 'tint' },
29
+ ...[0.78, 0.64, 0.5].map((t, i) => ({
30
+ d: stroke(front, [0.52, t], [i === 1 ? 0.76 : 0.86, t]),
31
+ trim: erase(24 - i * 5, 90 + i * 5),
32
+ })),
33
+ ],
34
+ },
35
+ glow('aio', [170, -250], 22, [twinkle(40), twinkle(140, true)]),
36
+ ],
37
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const angpao: Icon;
@@ -0,0 +1,46 @@
1
+ // Drawn for @20baht/stickers: an angpao, the red envelope of Chinese New Year, a gold flower on it; it hops and
2
+ // the flower shines.
3
+ import { glint, hop, twinkle } from '../motions.js';
4
+ import { ellipse, poly, rect, rosette, spark } from '../sticker.js';
5
+ import { EXT, FACE, glow, LINE } from './shared.js';
6
+ export const angpao = {
7
+ name: 'angpao',
8
+ frames: 160,
9
+ line: LINE,
10
+ extrude: EXT,
11
+ layers: [
12
+ { id: 'root', p: [250, 260], m: hop, shapes: [] },
13
+ {
14
+ id: 'env',
15
+ parent: 'root',
16
+ tilt: FACE,
17
+ shapes: [
18
+ { d: rect(-100, -150, 200, 300, 16), fill: 'hot', depth: 0.8 },
19
+ {
20
+ d: poly([
21
+ [-100, -150],
22
+ [100, -150],
23
+ [100, -96],
24
+ [0, -46],
25
+ [-100, -96],
26
+ ], [16, 16, 4, 8, 4]),
27
+ fill: 'hot',
28
+ depth: 0.3,
29
+ },
30
+ { d: ellipse(0, -46, 18), fill: 'gold', depth: 0.3 },
31
+ { d: rosette(0, 54, 58), fill: 'gold', depth: 0.3 },
32
+ { d: ellipse(0, 54, 24), fill: 'hot' },
33
+ { d: rect(-70, 120, 140, 10, 5), fill: 'gold', line: false },
34
+ ],
35
+ },
36
+ {
37
+ parent: 'env',
38
+ a: [-26, 30],
39
+ p: [-26, 30],
40
+ m: glint(46, 90),
41
+ shapes: [{ d: spark(-26, 30, 20), fill: 'white' }],
42
+ },
43
+ glow('root', [130, -170], 24, [twinkle(40), twinkle(130, true)]),
44
+ glow('root', [-140, -60], 16, [twinkle(46), twinkle(134, true)]),
45
+ ],
46
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const badgeReader: Icon;
@@ -0,0 +1,51 @@
1
+ // Drawn for @20baht/stickers, modelled in 3d (see iso.ts).
2
+ import { 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 wall card reader: a thin plate with a dark pad, an ID card taps it and the light pops green
6
+ const PLATE = block([-95, 0, 0], [190, 0, 0], [0, 24, 0], [0, 0, 290]);
7
+ const plate = faceOf(PLATE, 'front');
8
+ const LIGHT = plate.at(0.5, 0.15);
9
+ const CARD = block([-75, -80, 96], [150, 0, 0], [0, 7, 0], [0, 0, 96]);
10
+ const card = faceOf(CARD, 'front');
11
+ export const badgeReader = {
12
+ name: 'badge-reader',
13
+ frames: 180,
14
+ still: 70,
15
+ line: LINE,
16
+ extrude: [0, 0],
17
+ layers: [
18
+ { id: 'wall', p: [250, 400], shapes: [] },
19
+ {
20
+ parent: 'wall',
21
+ shapes: [
22
+ ...solid(PLATE, { fill: 'grey', front: 'white', top: 'white' }, 4),
23
+ { d: quad(plate, 0.15, 0.32, 0.7, 0.55, 6), fill: 'deep' },
24
+ ...[0.5, 0.62, 0.74].map((t, i) => ({
25
+ d: stroke(plate, [0.38 - i * 0.04, t], [0.62 + i * 0.04, t]),
26
+ })),
27
+ { d: dot(plate, 0.5, 0.15, 0.09, 0.05), fill: 'grey' },
28
+ ],
29
+ },
30
+ // the light turns green as the card lands
31
+ {
32
+ parent: 'wall',
33
+ a: LIGHT,
34
+ p: LIGHT,
35
+ m: [twinkle(48), twinkle(130, true)],
36
+ shapes: [{ d: dot(plate, 0.5, 0.15, 0.09, 0.05), fill: 'ok' }],
37
+ },
38
+ {
39
+ parent: 'wall',
40
+ m: slide(ISO([0, 62, 0]), 8, 70, 40),
41
+ shapes: [
42
+ ...solid(CARD, { fill: 'deep', front: 'main' }, 3),
43
+ { d: quad(card, 0.08, 0.55, 0.3, 0.35, 3), fill: 'white' },
44
+ { d: stroke(card, [0.48, 0.75], [0.9, 0.75]) },
45
+ { d: stroke(card, [0.48, 0.55], [0.78, 0.55]) },
46
+ { d: quad(card, 0, 0.12, 1, 0.16), fill: 'gold', line: false },
47
+ ],
48
+ },
49
+ glow('wall', [150, -320], 24, [twinkle(50), twinkle(130, true)]),
50
+ ],
51
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const bahtNote: Icon;
@@ -0,0 +1,42 @@
1
+ // Drawn for @20baht/stickers: a Thai banknote in the theme's note colour, a baht sign in its watermark oval.
2
+ // Its body is `main`, so it turns into the 50, 100, 500 or 1000 note with the banknote palettes.
3
+ import { glint, jolt, twinkle } from '../motions.js';
4
+ import { ellipse, line, rect, spark } from '../sticker.js';
5
+ import { EXT, FACE, glow, LINE } from './shared.js';
6
+ // ฿: a B with a bar through it
7
+ const SIGN = 'M-96 -26L-74 -26Q-60 -26 -60 -13Q-60 -2 -74 0Q-56 1 -56 14Q-56 26 -72 26L-96 26ZM-96 0L-74 0M-80 -38L-80 38';
8
+ const note = (fill) => [
9
+ { d: rect(-160, -92, 320, 184, 14), fill, depth: 0.4 },
10
+ { d: rect(-144, -76, 288, 152, 8) },
11
+ ];
12
+ export const bahtNote = {
13
+ name: 'baht-note',
14
+ frames: 150,
15
+ line: LINE,
16
+ extrude: EXT,
17
+ layers: [
18
+ { id: 'root', a: [0, 90], p: [256, 320], m: jolt(), shapes: [] },
19
+ { parent: 'root', tilt: [-28, 36], p: [-26, -34], shapes: note('tint') },
20
+ {
21
+ id: 'note',
22
+ parent: 'root',
23
+ tilt: FACE,
24
+ shapes: [
25
+ ...note('main'),
26
+ { d: ellipse(-80, 0, 50, 58), fill: 'white', depth: 0.2 },
27
+ { d: SIGN },
28
+ { d: line([0, -40], [110, -40]) },
29
+ { d: line([0, -10], [70, -10]) },
30
+ { d: ellipse(104, 42, 22), fill: 'gold', depth: 0.2 },
31
+ ],
32
+ },
33
+ {
34
+ parent: 'note',
35
+ a: [120, -60],
36
+ p: [120, -60],
37
+ m: glint(26, 90),
38
+ shapes: [{ d: spark(120, -60, 24), fill: 'white' }],
39
+ },
40
+ glow('root', [-190, 60], 18, [twinkle(30), twinkle(120, true)]),
41
+ ],
42
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const bamboo: Icon;
@@ -0,0 +1,57 @@
1
+ // Drawn for @20baht/stickers: a bamboo clump in 2.5d (see nature-iso.ts); the culms sway one after another.
2
+ import { sway, twinkle } from '../motions.js';
3
+ import { ISO } from '../iso.js';
4
+ import { band, blade, disc, farness, lathe } from './nature-iso.js';
5
+ import { glow, LINE } from './shared.js';
6
+ // culms are round stalks with a ring at each node; a fan of narrow leaves springs from the upper nodes
7
+ const R = 13;
8
+ const NODE = 54;
9
+ const CULMS = [
10
+ [[-40, 40, 0], 250],
11
+ [[30, 60, 0], 300],
12
+ [[-6, -10, 0], 330],
13
+ [[56, -20, 0], 230],
14
+ [[-60, -36, 0], 200],
15
+ ].sort((a, b) => farness(b[0]) - farness(a[0]));
16
+ const culm = (o, h, i) => {
17
+ const nodes = Array.from({ length: Math.floor(h / NODE) }, (_, k) => (k + 1) * NODE).filter((z) => z < h - 8);
18
+ const leafAt = nodes.slice(-2);
19
+ const side = i % 2 ? 1 : -1;
20
+ return [
21
+ {
22
+ d: lathe(o, [
23
+ [R, 0],
24
+ [R, h],
25
+ ]),
26
+ fill: 'ok',
27
+ },
28
+ ...nodes.map((z) => ({ d: band(o, R + 1, z) })),
29
+ ...leafAt.flatMap((z, k) => {
30
+ const p = ISO([o[0] + side * R, o[1], z]);
31
+ return [-0.5, 0, 0.5].map((spread) => ({
32
+ d: blade(p, (side > 0 ? 0 : Math.PI) + side * (spread - 0.3 - k * 0.3), 62, 15, 0.35).d,
33
+ fill: 'ok',
34
+ }));
35
+ }),
36
+ ];
37
+ };
38
+ export const bamboo = {
39
+ name: 'bamboo',
40
+ frames: 180,
41
+ line: LINE,
42
+ extrude: [0, 0],
43
+ layers: [
44
+ { id: 'clump', p: [250, 410], shapes: [{ d: disc([0, 0, 0], 110), fill: 'tint' }] },
45
+ ...CULMS.map(([o, h], i) => {
46
+ const foot = ISO(o);
47
+ return {
48
+ parent: 'clump',
49
+ a: foot,
50
+ p: foot,
51
+ m: { ...sway, at: i * 8, k: 0.5 },
52
+ shapes: culm(o, h, i),
53
+ };
54
+ }),
55
+ glow('clump', [130, -300], 22, [twinkle(40), twinkle(140, true)]),
56
+ ],
57
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const bananaLeaf: Icon;
@@ -0,0 +1,87 @@
1
+ // Drawn for @20baht/stickers: khanom wrapped in banana leaf, in 2.5d (see iso.ts); the parcels hop in turn.
2
+ import { hop, twinkle } from '../motions.js';
3
+ import { line, poly } from '../sticker.js';
4
+ import { add, block, faceOf, ISO, solid, stroke } from '../iso.js';
5
+ import { clean } from './nature-iso.js';
6
+ import { glow, LINE } from './shared.js';
7
+ // a banana leaf lies on the table with its veins, a pyramid khanom tian pinned at the tip with a skewer, and a
8
+ // folded oblong parcel beside it
9
+ const LEN = 340;
10
+ const WID = 150;
11
+ const XS = Array.from({ length: 17 }, (_, i) => -LEN / 2 + (LEN * i) / 16);
12
+ const half = (x) => (WID / 2) * Math.sin((Math.PI * (x + LEN / 2)) / LEN) ** 0.75;
13
+ const leafAt = (z) => clean([
14
+ ...XS.map((x) => ISO([x, half(x), z])),
15
+ ...[...XS].reverse().map((x) => ISO([x, -half(x), z])),
16
+ ]);
17
+ const VEINS = [-110, -60, -10, 40, 90].flatMap((x) => [1, -1].map((s) => line(ISO([x, 0, 0]), ISO([x + 40, s * half(x + 40) * 0.8, 0]))));
18
+ const area = (pts) => pts.reduce((a, p, i) => {
19
+ const q = pts[(i + 1) % pts.length] ?? p;
20
+ return a + p[0] * q[1] - q[0] * p[1];
21
+ }, 0);
22
+ const S = 96;
23
+ const H = 108;
24
+ const pyramid = (o) => {
25
+ const c = (x, y, z) => ISO(add(o, [x, y, z]));
26
+ const [b0, b1, b2, b3] = [
27
+ c(-S / 2, -S / 2, 0),
28
+ c(S / 2, -S / 2, 0),
29
+ c(S / 2, S / 2, 0),
30
+ c(-S / 2, S / 2, 0),
31
+ ];
32
+ const top = c(0, 0, H);
33
+ const faces = [
34
+ [[b0, b1, top], 'ok'],
35
+ [[b1, b2, top], 'ok'],
36
+ [[b2, b3, top], 'ok'],
37
+ [[b3, b0, top], 'ok'],
38
+ ];
39
+ return [
40
+ ...faces
41
+ .filter(([pts]) => area(pts) < 0)
42
+ .map(([pts, fill]) => ({ d: poly(pts, 2), fill })),
43
+ { d: line(c(-S / 4, -S / 2, 0), top) },
44
+ { d: line(c(0, 0, H + 46), c(0, 0, H - 18)), line: 6, round: true },
45
+ ];
46
+ };
47
+ const PARCEL = block([40, -40, 0], [110, 0, 0], [0, 64, 0], [0, 0, 34]);
48
+ const ptop = faceOf(PARCEL, 'top');
49
+ export const bananaLeaf = {
50
+ name: 'banana-leaf',
51
+ frames: 180,
52
+ line: LINE,
53
+ extrude: [0, 0],
54
+ layers: [
55
+ {
56
+ id: 'leaf',
57
+ p: [250, 300],
58
+ shapes: [
59
+ { d: poly(leafAt(-8)), fill: 'ok' },
60
+ { d: poly(leafAt(0)), fill: 'ok' },
61
+ { d: line(ISO([-LEN / 2, 0, 0]), ISO([LEN / 2, 0, 0])) },
62
+ ...VEINS.map((d) => ({ d })),
63
+ ],
64
+ },
65
+ {
66
+ parent: 'leaf',
67
+ a: ISO([-60, 10, 0]),
68
+ p: ISO([-60, 10, 0]),
69
+ m: { ...hop, k: 0.5 },
70
+ shapes: pyramid([-60, 10, 0]),
71
+ },
72
+ {
73
+ parent: 'leaf',
74
+ a: ISO([95, -8, 0]),
75
+ p: ISO([95, -8, 0]),
76
+ m: { ...hop, k: 0.5, at: 6 },
77
+ shapes: [
78
+ ...solid(PARCEL, { fill: 'ok', top: 'ok' }, 4),
79
+ { d: stroke(ptop, [0.25, 0], [0.25, 1]) },
80
+ { d: stroke(ptop, [0.75, 0], [0.75, 1]) },
81
+ { d: stroke(ptop, [0.5, 0.15], [0.5, 0.85]), line: 6 },
82
+ ],
83
+ },
84
+ glow('leaf', [-140, -140], 22, [twinkle(40), twinkle(140, true)]),
85
+ glow('leaf', [170, -90], 16, [twinkle(48), twinkle(146, true)]),
86
+ ],
87
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const bananaTree: Icon;
@@ -0,0 +1,75 @@
1
+ // Drawn for @20baht/stickers: a banana plant in 2.5d (see nature-iso.ts); the big split leaves sway in turn.
2
+ import { float, sway, twinkle } from '../motions.js';
3
+ import { line } from '../sticker.js';
4
+ import { ISO } from '../iso.js';
5
+ import { band, blade, disc, lathe } from './nature-iso.js';
6
+ import { glow, LINE } from './shared.js';
7
+ // a sheathed pseudostem on a patch of ground, long leaves torn along their veins, a hand of bananas and the
8
+ // purple heart hanging from a curved stalk
9
+ const STEM = [
10
+ [30, 0],
11
+ [26, 120],
12
+ [20, 190],
13
+ ];
14
+ const CROWN = ISO([0, 0, 186]);
15
+ // back leaves first: angle (radians, 0 right, positive down), length, droop
16
+ const LEAVES = [
17
+ [-2.2, 150, 0.5],
18
+ [-0.95, 150, 0.5],
19
+ [-2.75, 170, 0.62],
20
+ [-0.35, 168, 0.6],
21
+ [-1.6, 120, 0.25],
22
+ ];
23
+ const leaf = ([ang, len, droop]) => {
24
+ const { d, rib } = blade(CROWN, ang, len, 56, droop);
25
+ const tears = [3, 5, 7].map((i) => {
26
+ const p = rib[i] ?? CROWN;
27
+ const q = rib[i + 1] ?? p;
28
+ const [dx, dy] = [q[0] - p[0], q[1] - p[1]];
29
+ const l = Math.hypot(dx, dy) || 1;
30
+ const k = i % 4 === 1 ? -1 : 1;
31
+ return { d: line(p, [p[0] - (dy / l) * 26 * k, p[1] + (dx / l) * 26 * k]) };
32
+ });
33
+ return [{ d, fill: 'ok' }, { d: line(...rib) }, ...tears];
34
+ };
35
+ const HAND = [CROWN[0] + 64, CROWN[1] + 40];
36
+ const FINGERS = [0, 1, 2, 3].flatMap((i) => [0, 1].map((row) => {
37
+ const o = [HAND[0] - 22 + i * 14, HAND[1] + row * 26];
38
+ return blade(o, 1.9 - i * 0.12, 40, 15, -0.5).d;
39
+ }));
40
+ export const bananaTree = {
41
+ name: 'banana-tree',
42
+ frames: 180,
43
+ line: LINE,
44
+ extrude: [0, 0],
45
+ layers: [
46
+ { id: 'plant', p: [244, 410], shapes: [] },
47
+ {
48
+ parent: 'plant',
49
+ shapes: [
50
+ { d: disc([0, 0, 0], 96), fill: 'tint' },
51
+ { d: lathe([0, 0, 0], STEM), fill: 'ok' },
52
+ ...[40, 90, 140].map((z) => ({ d: band([0, 0, 0], 30 - z / 26, z) })),
53
+ ],
54
+ },
55
+ ...LEAVES.map((l, i) => ({
56
+ parent: 'plant',
57
+ a: CROWN,
58
+ p: CROWN,
59
+ m: { ...sway, at: i * 10, k: i % 2 ? -0.8 : 0.8 },
60
+ shapes: leaf(l),
61
+ })),
62
+ {
63
+ parent: 'plant',
64
+ a: [CROWN[0] + 20, CROWN[1]],
65
+ p: [CROWN[0] + 20, CROWN[1]],
66
+ m: { ...float, k: 0.6 },
67
+ shapes: [
68
+ { d: `M${String(CROWN[0] + 10)} ${String(CROWN[1] + 4)}q60 -6 64 40l0 60`, line: 6 },
69
+ ...FINGERS.map((d) => ({ d, fill: 'gold' })),
70
+ { d: blade([HAND[0] + 10, HAND[1] + 64], Math.PI / 2, 46, 30, 0).d, fill: 'hot' },
71
+ ],
72
+ },
73
+ glow('plant', [140, -320], 22, [twinkle(40), twinkle(140, true)]),
74
+ ],
75
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const bear: Icon;
@@ -0,0 +1,39 @@
1
+ import { sparkle, wobble } from '../motions.js';
2
+ import { block, dot, faceOf, quad } from '../iso.js';
3
+ import { glow, LINE } from './shared.js';
4
+ import { box, drum } from './volume.js';
5
+ const face = faceOf(block([-90, -55, 120], [180, 0, 0], [0, 110, 0], [0, 0, 145]), 'front');
6
+ // A chunky bear mascot with a muzzle, paws and receipt tucked into its belly.
7
+ export const bear = {
8
+ name: 'bear',
9
+ frames: 180,
10
+ line: LINE,
11
+ extrude: [0, 0],
12
+ layers: [
13
+ { id: 'bear', p: [245, 385], m: wobble, shapes: [] },
14
+ {
15
+ parent: 'bear',
16
+ shapes: [
17
+ ...drum([-70, -24, 266], 33, 35, 48, 'deep', 'ink'),
18
+ ...drum([70, -24, 266], 33, 35, 48, 'deep', 'ink'),
19
+ ...drum([-70, -25, 266], 17, 20, 0, 'gold'),
20
+ ...drum([70, -25, 266], 17, 20, 0, 'gold'),
21
+ ...box([-72, -38, 28], [144, 95, 126], 'ink', 'deep', 'deep'),
22
+ ...box([-83, -68, 0], [61, 90, 42], 'deep', 'main'),
23
+ ...box([22, -68, 0], [61, 90, 42], 'deep', 'main'),
24
+ ...box([-90, -55, 120], [180, 110, 145], 'ink', 'deep', 'deep'),
25
+ ...[0.28, 0.72].map((s) => ({
26
+ d: dot(face, s, 0.64, 0.07, 0.09),
27
+ fill: 'white',
28
+ line: false,
29
+ })),
30
+ ...drum([0, -76, 168], 39, 27, 20, 'white', 'grey'),
31
+ ...drum([0, -79, 180], 13, 9, 3, 'ink'),
32
+ { d: quad(face, 0.35, -0.42, 0.3, 0.36, 3), fill: 'gold' },
33
+ ...box([-104, -60, 65], [34, 55, 65], 'deep', 'main'),
34
+ ...box([70, -60, 65], [34, 55, 65], 'deep', 'main'),
35
+ ],
36
+ },
37
+ glow('bear', [145, -220], 22, sparkle(24)),
38
+ ],
39
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const bladeChassis: Icon;
@@ -0,0 +1,43 @@
1
+ // Drawn for @20baht/stickers, modelled in 3d (see iso.ts).
2
+ import { slide, sway, 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 blade chassis: a deep box with eight blades standing side by side in its front, a light at the top of each
6
+ const W = 250;
7
+ const D = 190;
8
+ const H = 190;
9
+ const N = 8;
10
+ const BW = 24;
11
+ const GAP = 4;
12
+ const X0 = -((N * BW + (N - 1) * GAP) / 2);
13
+ const BOX = block([-W / 2, -D / 2, 0], [W, 0, 0], [0, D, 0], [0, 0, H]);
14
+ const front = faceOf(BOX, 'front');
15
+ const blade = (i) => {
16
+ const b = block([X0 + i * (BW + GAP), -D / 2 - 7, 30], [BW, 0, 0], [0, 7, 0], [0, 0, 132]);
17
+ const f = faceOf(b, 'front');
18
+ return [
19
+ ...solid(b, { fill: 'grey', front: 'tint' }, 2),
20
+ { d: stroke(f, [0.5, 0.12], [0.5, 0.62]) },
21
+ { d: dot(f, 0.5, 0.82, 0.22, 0.22 * (BW / 132)), fill: i === 5 ? 'gold' : 'ok' },
22
+ ];
23
+ };
24
+ export const bladeChassis = {
25
+ name: 'blade-chassis',
26
+ frames: 180,
27
+ line: LINE,
28
+ extrude: [0, 0],
29
+ layers: [
30
+ { id: 'box', p: [250, 340], m: { ...sway, k: 0.5 }, shapes: [] },
31
+ {
32
+ parent: 'box',
33
+ shapes: [
34
+ ...solid(BOX, { fill: 'deep', top: 'main' }, 3),
35
+ { d: quad(front, 0.06, 0.04, 0.88, 0.1, 2), fill: 'tint' },
36
+ ...[0, 1, 2, 3, 4, 6, 7].flatMap(blade),
37
+ ],
38
+ },
39
+ // the sixth blade is pulled out and slid home
40
+ { parent: 'box', m: slide(ISO([0, -30, 0]), 22, 40, 40), shapes: blade(5) },
41
+ glow('box', [140, -250], 24, [twinkle(50), twinkle(140, true)]),
42
+ ],
43
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const bond: Icon;
@@ -0,0 +1,48 @@
1
+ // Drawn for @20baht/stickers: a bond certificate with a ruled border, a gold seal and ribbons that stamp on.
2
+ import { hop, jolt, twinkle } from '../motions.js';
3
+ import { line, poly, rect, rosette, ellipse } from '../sticker.js';
4
+ import { EXT, FACE, glow, LINE } from './shared.js';
5
+ const ribbon = (x, lean) => poly([
6
+ [x - 14, 50],
7
+ [x + 14, 50],
8
+ [x + 14 + lean, 120],
9
+ [x + lean, 104],
10
+ [x - 14 + lean, 120],
11
+ ], 2);
12
+ export const bond = {
13
+ name: 'bond',
14
+ frames: 160,
15
+ line: LINE,
16
+ extrude: EXT,
17
+ layers: [
18
+ { id: 'root', a: [0, 110], p: [250, 320], m: jolt(), shapes: [] },
19
+ {
20
+ id: 'paper',
21
+ parent: 'root',
22
+ tilt: FACE,
23
+ shapes: [
24
+ { d: rect(-170, -116, 340, 232, 10), fill: 'white', depth: 0.5 },
25
+ { d: rect(-152, -98, 304, 196, 6), fill: 'tint' },
26
+ { d: rect(-140, -86, 280, 172, 4), fill: 'white' },
27
+ { d: line([-80, -56], [80, -56]), line: 9 },
28
+ { d: line([-110, -20], [110, -20]) },
29
+ { d: line([-110, 6], [70, 6]) },
30
+ { d: line([-110, 32], [20, 32]) },
31
+ { d: line([-110, 64], [-40, 64]) },
32
+ ],
33
+ },
34
+ {
35
+ parent: 'paper',
36
+ a: [96, 40],
37
+ p: [96, 40],
38
+ m: { ...hop, at: 8, k: 1.2 },
39
+ shapes: [
40
+ { d: ribbon(80, -10), fill: 'hot', depth: 0.3 },
41
+ { d: ribbon(112, 10), fill: 'hot', depth: 0.3 },
42
+ { d: rosette(96, 40, 48, 12), fill: 'gold', depth: 0.6 },
43
+ { d: ellipse(96, 40, 26) },
44
+ ],
45
+ },
46
+ glow('root', [-190, -90], 22, [twinkle(44), twinkle(130, true)]),
47
+ ],
48
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const books: Icon;