@20baht/stickers 0.0.0-stage → 0.1.0

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 (409) 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/cursor.d.ts +2 -0
  78. package/dist/icons/cursor.js +27 -0
  79. package/dist/icons/database.d.ts +2 -0
  80. package/dist/icons/database.js +24 -0
  81. package/dist/icons/desktop-tower.d.ts +2 -0
  82. package/dist/icons/desktop-tower.js +41 -0
  83. package/dist/icons/disc-image.d.ts +2 -0
  84. package/dist/icons/disc-image.js +54 -0
  85. package/dist/icons/dollar-note.d.ts +2 -0
  86. package/dist/icons/dollar-note.js +44 -0
  87. package/dist/icons/electric-bill.d.ts +2 -0
  88. package/dist/icons/electric-bill.js +51 -0
  89. package/dist/icons/email.d.ts +2 -0
  90. package/dist/icons/email.js +57 -0
  91. package/dist/icons/empty-state.d.ts +2 -0
  92. package/dist/icons/empty-state.js +75 -0
  93. package/dist/icons/expense.d.ts +2 -0
  94. package/dist/icons/expense.js +36 -0
  95. package/dist/icons/export-file.d.ts +2 -0
  96. package/dist/icons/export-file.js +35 -0
  97. package/dist/icons/eyedropper.d.ts +2 -0
  98. package/dist/icons/eyedropper.js +69 -0
  99. package/dist/icons/face-id.d.ts +2 -0
  100. package/dist/icons/face-id.js +51 -0
  101. package/dist/icons/file.d.ts +2 -0
  102. package/dist/icons/file.js +15 -0
  103. package/dist/icons/finance-b-coins.d.ts +8 -0
  104. package/dist/icons/finance-b-coins.js +14 -0
  105. package/dist/icons/finance-tray.d.ts +11 -0
  106. package/dist/icons/finance-tray.js +41 -0
  107. package/dist/icons/fingerprint.d.ts +2 -0
  108. package/dist/icons/fingerprint.js +45 -0
  109. package/dist/icons/firewall.d.ts +2 -0
  110. package/dist/icons/firewall.js +76 -0
  111. package/dist/icons/floating-ip.d.ts +2 -0
  112. package/dist/icons/floating-ip.js +59 -0
  113. package/dist/icons/flower.d.ts +2 -0
  114. package/dist/icons/flower.js +49 -0
  115. package/dist/icons/food.d.ts +6 -0
  116. package/dist/icons/food.js +18 -0
  117. package/dist/icons/freelance.d.ts +2 -0
  118. package/dist/icons/freelance.js +51 -0
  119. package/dist/icons/fuel.d.ts +2 -0
  120. package/dist/icons/fuel.js +46 -0
  121. package/dist/icons/goal.d.ts +2 -0
  122. package/dist/icons/goal.js +51 -0
  123. package/dist/icons/gold-bar.d.ts +2 -0
  124. package/dist/icons/gold-bar.js +60 -0
  125. package/dist/icons/hard-drive.d.ts +2 -0
  126. package/dist/icons/hard-drive.js +42 -0
  127. package/dist/icons/highlighter.d.ts +2 -0
  128. package/dist/icons/highlighter.js +75 -0
  129. package/dist/icons/home-router.d.ts +2 -0
  130. package/dist/icons/home-router.js +32 -0
  131. package/dist/icons/hot-drink.d.ts +2 -0
  132. package/dist/icons/hot-drink.js +33 -0
  133. package/dist/icons/hsm.d.ts +2 -0
  134. package/dist/icons/hsm.js +54 -0
  135. package/dist/icons/id-card.d.ts +2 -0
  136. package/dist/icons/id-card.js +36 -0
  137. package/dist/icons/income.d.ts +2 -0
  138. package/dist/icons/income.js +28 -0
  139. package/dist/icons/index.d.ts +185 -0
  140. package/dist/icons/index.js +366 -0
  141. package/dist/icons/interest.d.ts +2 -0
  142. package/dist/icons/interest.js +66 -0
  143. package/dist/icons/iot-sensor.d.ts +2 -0
  144. package/dist/icons/iot-sensor.js +35 -0
  145. package/dist/icons/ip-phone.d.ts +2 -0
  146. package/dist/icons/ip-phone.js +47 -0
  147. package/dist/icons/ipad-gen8.d.ts +2 -0
  148. package/dist/icons/ipad-gen8.js +58 -0
  149. package/dist/icons/iphone-17.d.ts +2 -0
  150. package/dist/icons/iphone-17.js +37 -0
  151. package/dist/icons/iso.d.ts +2 -0
  152. package/dist/icons/iso.js +3 -0
  153. package/dist/icons/kaprao.d.ts +2 -0
  154. package/dist/icons/kaprao.js +70 -0
  155. package/dist/icons/key-pair.d.ts +2 -0
  156. package/dist/icons/key-pair.js +54 -0
  157. package/dist/icons/key.d.ts +3 -0
  158. package/dist/icons/key.js +37 -0
  159. package/dist/icons/keyboard.d.ts +2 -0
  160. package/dist/icons/keyboard.js +35 -0
  161. package/dist/icons/kite.d.ts +2 -0
  162. package/dist/icons/kite.js +53 -0
  163. package/dist/icons/kvm.d.ts +2 -0
  164. package/dist/icons/kvm.js +53 -0
  165. package/dist/icons/lamp.d.ts +2 -0
  166. package/dist/icons/lamp.js +49 -0
  167. package/dist/icons/laptop.d.ts +2 -0
  168. package/dist/icons/laptop.js +44 -0
  169. package/dist/icons/load-balancer.d.ts +2 -0
  170. package/dist/icons/load-balancer.js +50 -0
  171. package/dist/icons/lock-screen.d.ts +2 -0
  172. package/dist/icons/lock-screen.js +44 -0
  173. package/dist/icons/long-tail-boat.d.ts +2 -0
  174. package/dist/icons/long-tail-boat.js +66 -0
  175. package/dist/icons/lottery.d.ts +2 -0
  176. package/dist/icons/lottery.js +51 -0
  177. package/dist/icons/lotus.d.ts +2 -0
  178. package/dist/icons/lotus.js +70 -0
  179. package/dist/icons/mac-mini.d.ts +2 -0
  180. package/dist/icons/mac-mini.js +31 -0
  181. package/dist/icons/macbook-air.d.ts +2 -0
  182. package/dist/icons/macbook-air.js +41 -0
  183. package/dist/icons/mailbox-thai.d.ts +2 -0
  184. package/dist/icons/mailbox-thai.js +66 -0
  185. package/dist/icons/mango-sticky-rice.d.ts +2 -0
  186. package/dist/icons/mango-sticky-rice.js +41 -0
  187. package/dist/icons/marigold.d.ts +2 -0
  188. package/dist/icons/marigold.js +69 -0
  189. package/dist/icons/market-basket.d.ts +2 -0
  190. package/dist/icons/market-basket.js +69 -0
  191. package/dist/icons/media-player.d.ts +2 -0
  192. package/dist/icons/media-player.js +71 -0
  193. package/dist/icons/metrics.d.ts +2 -0
  194. package/dist/icons/metrics.js +58 -0
  195. package/dist/icons/mini-pc.d.ts +2 -0
  196. package/dist/icons/mini-pc.js +26 -0
  197. package/dist/icons/modem.d.ts +2 -0
  198. package/dist/icons/modem.js +37 -0
  199. package/dist/icons/monitor.d.ts +2 -0
  200. package/dist/icons/monitor.js +40 -0
  201. package/dist/icons/monstera.d.ts +2 -0
  202. package/dist/icons/monstera.js +47 -0
  203. package/dist/icons/moon.d.ts +2 -0
  204. package/dist/icons/moon.js +55 -0
  205. package/dist/icons/motorbike-taxi.d.ts +2 -0
  206. package/dist/icons/motorbike-taxi.js +42 -0
  207. package/dist/icons/music-note.d.ts +2 -0
  208. package/dist/icons/music-note.js +63 -0
  209. package/dist/icons/nas-2bay.d.ts +2 -0
  210. package/dist/icons/nas-2bay.js +49 -0
  211. package/dist/icons/nas.d.ts +2 -0
  212. package/dist/icons/nas.js +41 -0
  213. package/dist/icons/nature-iso.d.ts +29 -0
  214. package/dist/icons/nature-iso.js +74 -0
  215. package/dist/icons/noodle-soup.d.ts +2 -0
  216. package/dist/icons/noodle-soup.js +52 -0
  217. package/dist/icons/notebook.d.ts +2 -0
  218. package/dist/icons/notebook.js +44 -0
  219. package/dist/icons/object-drum.d.ts +18 -0
  220. package/dist/icons/object-drum.js +63 -0
  221. package/dist/icons/otp.d.ts +2 -0
  222. package/dist/icons/otp.js +46 -0
  223. package/dist/icons/over-budget.d.ts +2 -0
  224. package/dist/icons/over-budget.js +48 -0
  225. package/dist/icons/pad-see-ew.d.ts +2 -0
  226. package/dist/icons/pad-see-ew.js +56 -0
  227. package/dist/icons/palm-tree.d.ts +2 -0
  228. package/dist/icons/palm-tree.js +52 -0
  229. package/dist/icons/paper-boat.d.ts +2 -0
  230. package/dist/icons/paper-boat.js +67 -0
  231. package/dist/icons/paper.d.ts +3 -0
  232. package/dist/icons/paper.js +45 -0
  233. package/dist/icons/password.d.ts +2 -0
  234. package/dist/icons/password.js +45 -0
  235. package/dist/icons/patch-panel.d.ts +2 -0
  236. package/dist/icons/patch-panel.js +41 -0
  237. package/dist/icons/pdu.d.ts +2 -0
  238. package/dist/icons/pdu.js +40 -0
  239. package/dist/icons/phone-topup.d.ts +2 -0
  240. package/dist/icons/phone-topup.js +55 -0
  241. package/dist/icons/photo.d.ts +2 -0
  242. package/dist/icons/photo.js +48 -0
  243. package/dist/icons/phuang-malai.d.ts +2 -0
  244. package/dist/icons/phuang-malai.js +59 -0
  245. package/dist/icons/pie-chart.d.ts +2 -0
  246. package/dist/icons/pie-chart.js +36 -0
  247. package/dist/icons/piggy-bank.d.ts +2 -0
  248. package/dist/icons/piggy-bank.js +64 -0
  249. package/dist/icons/plant-kit.d.ts +23 -0
  250. package/dist/icons/plant-kit.js +112 -0
  251. package/dist/icons/plastic-stool.d.ts +2 -0
  252. package/dist/icons/plastic-stool.js +67 -0
  253. package/dist/icons/pointer.d.ts +1 -0
  254. package/dist/icons/pointer.js +12 -0
  255. package/dist/icons/pos.d.ts +2 -0
  256. package/dist/icons/pos.js +59 -0
  257. package/dist/icons/potted-plant.d.ts +2 -0
  258. package/dist/icons/potted-plant.js +31 -0
  259. package/dist/icons/power-pole.d.ts +2 -0
  260. package/dist/icons/power-pole.js +60 -0
  261. package/dist/icons/power-station.d.ts +2 -0
  262. package/dist/icons/power-station.js +56 -0
  263. package/dist/icons/printer.d.ts +2 -0
  264. package/dist/icons/printer.js +46 -0
  265. package/dist/icons/qr-code.d.ts +2 -0
  266. package/dist/icons/qr-code.js +45 -0
  267. package/dist/icons/rack.d.ts +2 -0
  268. package/dist/icons/rack.js +39 -0
  269. package/dist/icons/rain-cloud.d.ts +2 -0
  270. package/dist/icons/rain-cloud.js +31 -0
  271. package/dist/icons/rainbow.d.ts +2 -0
  272. package/dist/icons/rainbow.js +46 -0
  273. package/dist/icons/receipt.d.ts +2 -0
  274. package/dist/icons/receipt.js +56 -0
  275. package/dist/icons/redmi-note-9s-pro.d.ts +2 -0
  276. package/dist/icons/redmi-note-9s-pro.js +37 -0
  277. package/dist/icons/register.d.ts +2 -0
  278. package/dist/icons/register.js +40 -0
  279. package/dist/icons/remote-desktop.d.ts +2 -0
  280. package/dist/icons/remote-desktop.js +62 -0
  281. package/dist/icons/remote-folder.d.ts +2 -0
  282. package/dist/icons/remote-folder.js +55 -0
  283. package/dist/icons/rent.d.ts +2 -0
  284. package/dist/icons/rent.js +50 -0
  285. package/dist/icons/rock.d.ts +2 -0
  286. package/dist/icons/rock.js +80 -0
  287. package/dist/icons/router.d.ts +2 -0
  288. package/dist/icons/router.js +59 -0
  289. package/dist/icons/salary.d.ts +2 -0
  290. package/dist/icons/salary.js +54 -0
  291. package/dist/icons/saving-streak.d.ts +2 -0
  292. package/dist/icons/saving-streak.js +66 -0
  293. package/dist/icons/scan-slip.d.ts +2 -0
  294. package/dist/icons/scan-slip.js +53 -0
  295. package/dist/icons/scissors.d.ts +2 -0
  296. package/dist/icons/scissors.js +52 -0
  297. package/dist/icons/server-cabinet.d.ts +2 -0
  298. package/dist/icons/server-cabinet.js +49 -0
  299. package/dist/icons/server.d.ts +2 -0
  300. package/dist/icons/server.js +41 -0
  301. package/dist/icons/shared.d.ts +8 -0
  302. package/dist/icons/shared.js +18 -0
  303. package/dist/icons/shield.d.ts +3 -0
  304. package/dist/icons/shield.js +28 -0
  305. package/dist/icons/shooting-star.d.ts +2 -0
  306. package/dist/icons/shooting-star.js +37 -0
  307. package/dist/icons/shopping-box.d.ts +2 -0
  308. package/dist/icons/shopping-box.js +46 -0
  309. package/dist/icons/sky-kit.d.ts +19 -0
  310. package/dist/icons/sky-kit.js +72 -0
  311. package/dist/icons/smart-tv.d.ts +2 -0
  312. package/dist/icons/smart-tv.js +39 -0
  313. package/dist/icons/smartphone.d.ts +2 -0
  314. package/dist/icons/smartphone.js +30 -0
  315. package/dist/icons/sms.d.ts +2 -0
  316. package/dist/icons/sms.js +45 -0
  317. package/dist/icons/snapshots.d.ts +2 -0
  318. package/dist/icons/snapshots.js +45 -0
  319. package/dist/icons/snip.d.ts +2 -0
  320. package/dist/icons/snip.js +63 -0
  321. package/dist/icons/spirit-house.d.ts +2 -0
  322. package/dist/icons/spirit-house.js +73 -0
  323. package/dist/icons/ssl-certificate.d.ts +2 -0
  324. package/dist/icons/ssl-certificate.js +56 -0
  325. package/dist/icons/star.d.ts +2 -0
  326. package/dist/icons/star.js +16 -0
  327. package/dist/icons/stock.d.ts +2 -0
  328. package/dist/icons/stock.js +62 -0
  329. package/dist/icons/storage-array.d.ts +2 -0
  330. package/dist/icons/storage-array.js +40 -0
  331. package/dist/icons/storm.d.ts +2 -0
  332. package/dist/icons/storm.js +43 -0
  333. package/dist/icons/street-food-cart.d.ts +2 -0
  334. package/dist/icons/street-food-cart.js +66 -0
  335. package/dist/icons/street-kit.d.ts +19 -0
  336. package/dist/icons/street-kit.js +67 -0
  337. package/dist/icons/street-sign.d.ts +2 -0
  338. package/dist/icons/street-sign.js +42 -0
  339. package/dist/icons/studio-monitors.d.ts +2 -0
  340. package/dist/icons/studio-monitors.js +67 -0
  341. package/dist/icons/sun.d.ts +2 -0
  342. package/dist/icons/sun.js +40 -0
  343. package/dist/icons/support.d.ts +2 -0
  344. package/dist/icons/support.js +48 -0
  345. package/dist/icons/switch.d.ts +2 -0
  346. package/dist/icons/switch.js +34 -0
  347. package/dist/icons/tablet.d.ts +2 -0
  348. package/dist/icons/tablet.js +44 -0
  349. package/dist/icons/tape-library.d.ts +2 -0
  350. package/dist/icons/tape-library.js +48 -0
  351. package/dist/icons/temple-donation.d.ts +2 -0
  352. package/dist/icons/temple-donation.js +60 -0
  353. package/dist/icons/tent.d.ts +2 -0
  354. package/dist/icons/tent.js +66 -0
  355. package/dist/icons/terminal.d.ts +2 -0
  356. package/dist/icons/terminal.js +56 -0
  357. package/dist/icons/thai-house.d.ts +2 -0
  358. package/dist/icons/thai-house.js +85 -0
  359. package/dist/icons/thai-lantern.d.ts +2 -0
  360. package/dist/icons/thai-lantern.js +61 -0
  361. package/dist/icons/thinkpad-l380.d.ts +2 -0
  362. package/dist/icons/thinkpad-l380.js +54 -0
  363. package/dist/icons/timer.d.ts +2 -0
  364. package/dist/icons/timer.js +59 -0
  365. package/dist/icons/train-ticket.d.ts +2 -0
  366. package/dist/icons/train-ticket.js +57 -0
  367. package/dist/icons/trash.d.ts +2 -0
  368. package/dist/icons/trash.js +62 -0
  369. package/dist/icons/tree.d.ts +2 -0
  370. package/dist/icons/tree.js +40 -0
  371. package/dist/icons/tuk-tuk.d.ts +2 -0
  372. package/dist/icons/tuk-tuk.js +45 -0
  373. package/dist/icons/tulip.d.ts +2 -0
  374. package/dist/icons/tulip.js +56 -0
  375. package/dist/icons/tunnel.d.ts +2 -0
  376. package/dist/icons/tunnel.js +50 -0
  377. package/dist/icons/two-factor.d.ts +2 -0
  378. package/dist/icons/two-factor.js +81 -0
  379. package/dist/icons/ups.d.ts +2 -0
  380. package/dist/icons/ups.js +37 -0
  381. package/dist/icons/usb-drive.d.ts +2 -0
  382. package/dist/icons/usb-drive.js +35 -0
  383. package/dist/icons/verified.d.ts +2 -0
  384. package/dist/icons/verified.js +32 -0
  385. package/dist/icons/virtual-machine.d.ts +2 -0
  386. package/dist/icons/virtual-machine.js +66 -0
  387. package/dist/icons/volume.d.ts +6 -0
  388. package/dist/icons/volume.js +35 -0
  389. package/dist/icons/vpn-gateway.d.ts +2 -0
  390. package/dist/icons/vpn-gateway.js +51 -0
  391. package/dist/icons/wake-on-lan.d.ts +2 -0
  392. package/dist/icons/wake-on-lan.js +40 -0
  393. package/dist/icons/wallet.d.ts +3 -0
  394. package/dist/icons/wallet.js +55 -0
  395. package/dist/icons/water-jar.d.ts +2 -0
  396. package/dist/icons/water-jar.js +72 -0
  397. package/dist/icons/wooden-window.d.ts +2 -0
  398. package/dist/icons/wooden-window.js +65 -0
  399. package/dist/index.d.ts +2 -0
  400. package/dist/index.js +4 -0
  401. package/dist/iso.d.ts +32 -0
  402. package/dist/iso.js +64 -0
  403. package/dist/load.d.ts +197 -0
  404. package/dist/load.js +197 -0
  405. package/dist/motions.d.ts +68 -0
  406. package/dist/motions.js +446 -0
  407. package/dist/sticker.d.ts +269 -0
  408. package/dist/sticker.js +1009 -0
  409. package/package.json +101 -4
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const interest: Icon;
@@ -0,0 +1,66 @@
1
+ // Drawn for @20baht/stickers: interest; a sprout grows out of a coin pile, leaves open, and it bears a coin.
2
+ import { SNAP, twinkle } from '../motions.js';
3
+ import { ellipse, line, poly, rect } from '../sticker.js';
4
+ import { PILE, stack, STEP } from './finance-b-coins.js';
5
+ import { glow, LINE } from './shared.js';
6
+ const BASE = 110 - STEP * 3;
7
+ const GROW = [
8
+ [10, [100, 8], SNAP],
9
+ [50, [100, 100], 0],
10
+ [150, [100, 100], SNAP],
11
+ [175, [100, 8]],
12
+ ];
13
+ const LEAVES = [
14
+ [0, BASE - 60, -1],
15
+ [0, BASE - 100, 1],
16
+ [0, BASE - 140, -1],
17
+ ];
18
+ export const interest = {
19
+ name: 'interest',
20
+ frames: 180,
21
+ still: 110,
22
+ line: LINE,
23
+ extrude: PILE,
24
+ layers: [
25
+ { id: 'root', p: [250, 320], shapes: [] },
26
+ {
27
+ id: 'stem',
28
+ parent: 'root',
29
+ a: [0, BASE],
30
+ p: [0, BASE],
31
+ m: { s: GROW },
32
+ shapes: [{ d: rect(-7, BASE - 176, 14, 176, 7), fill: 'ok', depth: 0.3 }],
33
+ },
34
+ ...LEAVES.map(([x, y, dir], i) => ({
35
+ parent: 'stem',
36
+ a: [x, y],
37
+ p: [x, y],
38
+ m: [twinkle(40 + i * 8), twinkle(128 + i * 4, true)],
39
+ shapes: [
40
+ {
41
+ d: poly([
42
+ [x, y],
43
+ [x + dir * 40, y - 34],
44
+ [x + dir * 86, y - 16],
45
+ [x + dir * 44, y + 12],
46
+ ], [4, 22, 4, 22]),
47
+ fill: 'ok',
48
+ depth: 0.3,
49
+ },
50
+ { d: line([x + dir * 10, y - 4], [x + dir * 62, y - 16]) },
51
+ ],
52
+ })),
53
+ {
54
+ parent: 'stem',
55
+ a: [0, BASE - 196],
56
+ p: [0, BASE - 196],
57
+ m: [twinkle(66), twinkle(138, true)],
58
+ shapes: [
59
+ { d: ellipse(0, BASE - 196, 32), fill: 'gold', depth: 0.5 },
60
+ { d: ellipse(0, BASE - 196, 18) },
61
+ ],
62
+ },
63
+ { parent: 'root', shapes: stack(0, 110, 4) },
64
+ glow('root', [140, -170], 22, [twinkle(70), twinkle(140, true)]),
65
+ ],
66
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const iotSensor: Icon;
@@ -0,0 +1,35 @@
1
+ // Drawn for @20baht/stickers, modelled in 3d (see iso.ts).
2
+ import { erase, hop, twinkle } from '../motions.js';
3
+ import { arc } from '../sticker.js';
4
+ import { block, dot, faceOf, quad, solid, stroke } from '../iso.js';
5
+ import { glow, LINE } from './shared.js';
6
+ // A small white sensor puck: status light on top, a vent on the front, its readings going out as arcs
7
+ const BOX = block([-80, -80, 0], [160, 0, 0], [0, 160, 0], [0, 0, 72]);
8
+ const top = faceOf(BOX, 'top');
9
+ const front = faceOf(BOX, 'front');
10
+ const WAVES = [36, 62, 88].map((r, i) => ({
11
+ d: arc(0, 0, r, 220, 320),
12
+ trim: erase(30 + i * 6, 96 + i * 6),
13
+ round: true,
14
+ }));
15
+ export const iotSensor = {
16
+ name: 'iot-sensor',
17
+ frames: 180,
18
+ still: 150,
19
+ line: LINE,
20
+ extrude: [0, 0],
21
+ layers: [
22
+ { id: 'puck', p: [250, 340], m: hop, shapes: [] },
23
+ {
24
+ parent: 'puck',
25
+ shapes: [
26
+ ...solid(BOX, { fill: 'grey', top: 'white', front: 'white' }, 14),
27
+ { d: quad(top, 0.25, 0.25, 0.5, 0.5, 14), fill: 'tint' },
28
+ { d: dot(top, 0.5, 0.5, 0.1), fill: 'ok' },
29
+ ...[0.35, 0.5, 0.65].map((s) => ({ d: stroke(front, [s, 0.3], [s, 0.7]) })),
30
+ ],
31
+ },
32
+ { parent: 'puck', p: [0, -150], shapes: WAVES },
33
+ glow('puck', [120, -150], 22, [twinkle(48), twinkle(140, true)]),
34
+ ],
35
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const ipPhone: Icon;
@@ -0,0 +1,47 @@
1
+ // Drawn for @20baht/stickers, modelled in 3d (see iso.ts).
2
+ import { twinkle, wiggle } from '../motions.js';
3
+ import { block, dot, faceOf, quad, solid } from '../iso.js';
4
+ import { glow, LINE } from './shared.js';
5
+ // A desk phone: a wedge body whose face leans back, a handset on its cradle at the left, a small screen and keys
6
+ const LEAN = (28 * Math.PI) / 180;
7
+ const W = 260;
8
+ const DEPTH = 190;
9
+ const BASE = block([-W / 2, -DEPTH / 2, 0], [W, 0, 0], [0, DEPTH, 0], [0, 0, 26]);
10
+ // the sloped face: a slab rising from the front edge to the back
11
+ const UP = [0, Math.cos(LEAN) * DEPTH, Math.sin(LEAN) * DEPTH];
12
+ const FACE3 = block([-W / 2, -DEPTH / 2, 26], [W, 0, 0], UP, [0, 0, 12]);
13
+ const face = faceOf(FACE3, 'top');
14
+ // the handset lies along the left of the sloped face
15
+ const SET = block([-W / 2 + 14, -DEPTH / 2 + 20, 48], [56, 0, 0], [0, 150, 70], [0, 0, 26]);
16
+ const keys = [];
17
+ for (let r = 0; r < 3; r++)
18
+ for (let c = 0; c < 3; c++)
19
+ keys.push({ d: dot(face, 0.5 + c * 0.12, 0.18 + r * 0.14, 0.035, 0.05), fill: 'white' });
20
+ export const ipPhone = {
21
+ name: 'ip-phone',
22
+ frames: 180,
23
+ line: LINE,
24
+ extrude: [0, 0],
25
+ layers: [
26
+ { id: 'ph', p: [250, 320], shapes: [] },
27
+ {
28
+ parent: 'ph',
29
+ shapes: [
30
+ ...solid(BASE, { fill: 'deep', top: 'main' }, 3),
31
+ ...solid(FACE3, { fill: 'deep', top: 'main' }, 3),
32
+ { d: quad(face, 0.46, 0.62, 0.42, 0.26, 3), fill: 'tint' },
33
+ ...keys,
34
+ { d: dot(face, 0.36, 0.86, 0.025, 0.04), fill: 'hot' },
35
+ ],
36
+ },
37
+ // the handset rings on its cradle
38
+ {
39
+ parent: 'ph',
40
+ a: [-80, -40],
41
+ p: [-80, -40],
42
+ m: { ...wiggle, k: 0.5 },
43
+ shapes: solid(SET, { fill: 'deep', top: 'main' }, 8),
44
+ },
45
+ glow('ph', [-170, -60], 22, [twinkle(46), twinkle(140, true)]),
46
+ ],
47
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const ipadGen8: Icon;
@@ -0,0 +1,58 @@
1
+ // Drawn for @20baht/stickers: an iPad (8th generation) style tablet, upright on a leaned face. No logo.
2
+ import { jolt, press, twinkle } from '../motions.js';
3
+ import { ellipse, rect } from '../sticker.js';
4
+ import { FACE, EXT, glow, LINE } from './shared.js';
5
+ // Portrait with the wide bezel and the round home button; the button presses and the home screen pops in
6
+ const APPS = [
7
+ 'main',
8
+ 'white',
9
+ 'gold',
10
+ 'white',
11
+ 'ok',
12
+ 'main',
13
+ 'white',
14
+ 'main',
15
+ 'gold',
16
+ 'ok',
17
+ 'white',
18
+ 'main',
19
+ ];
20
+ export const ipadGen8 = {
21
+ name: 'ipad-gen8',
22
+ frames: 180,
23
+ still: 100,
24
+ line: LINE,
25
+ extrude: EXT,
26
+ layers: [
27
+ { id: 'tab', p: [250, 255], m: jolt(), shapes: [] },
28
+ {
29
+ id: 'face',
30
+ parent: 'tab',
31
+ tilt: FACE,
32
+ shapes: [
33
+ { d: rect(-128, -178, 256, 356, 30), fill: 'deep', depth: 0.7 },
34
+ { d: rect(-110, -144, 220, 284, 6), fill: 'tint' },
35
+ { d: ellipse(0, -161, 4), fill: 'ink', line: false },
36
+ { d: rect(-92, 98, 184, 30, 10), fill: 'white', depth: 0.2 },
37
+ ],
38
+ },
39
+ {
40
+ parent: 'face',
41
+ a: [0, 160],
42
+ p: [0, 160],
43
+ m: { ...press, k: 0.25 },
44
+ shapes: [{ d: ellipse(0, 160, 11), fill: 'deep' }],
45
+ },
46
+ ...APPS.map((fill, i) => {
47
+ const c = [-66 + (i % 3) * 66, -106 + Math.floor(i / 3) * 52];
48
+ return {
49
+ parent: 'face',
50
+ a: c,
51
+ p: c,
52
+ m: [twinkle(16 + i * 3), twinkle(116 + i * 2, true)],
53
+ shapes: [{ d: rect(c[0] - 17, c[1] - 17, 34, 34, 9), fill, depth: 0.25 }],
54
+ };
55
+ }),
56
+ glow('tab', [150, -200], 24, [twinkle(54), twinkle(140, true)]),
57
+ ],
58
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const iphone17: Icon;
@@ -0,0 +1,37 @@
1
+ // Drawn for @20baht/stickers: an iPhone 17 style phone seen from the back, on a leaned face. No logo.
2
+ import { twinkle, wiggle } from '../motions.js';
3
+ import { ellipse, rect } from '../sticker.js';
4
+ import { EXT, FACE, glow, LINE } from './shared.js';
5
+ // The back: a tall camera pill with two lenses at the top corner, the flash beside it; it buzzes
6
+ const lens = (y) => [
7
+ { d: ellipse(-46, y, 20), fill: 'grey', depth: 0.3 },
8
+ { d: ellipse(-46, y, 11), fill: 'ink', line: false },
9
+ { d: ellipse(-50, y - 4, 3), fill: 'white', line: false },
10
+ ];
11
+ export const iphone17 = {
12
+ name: 'iphone-17',
13
+ frames: 180,
14
+ line: LINE,
15
+ extrude: EXT,
16
+ layers: [
17
+ { id: 'ph', a: [0, 150], p: [240, 400], m: { ...wiggle, k: 0.6 }, shapes: [] },
18
+ {
19
+ parent: 'ph',
20
+ tilt: FACE,
21
+ shapes: [
22
+ ...[-90, -40, 20].map((y) => ({
23
+ d: rect(-98, y, 12, y > 0 ? 60 : 34, 4),
24
+ fill: 'deep',
25
+ depth: 0.8,
26
+ })),
27
+ { d: rect(-90, -170, 180, 340, 40), fill: 'main', depth: 0.8 },
28
+ { d: rect(-76, -154, 60, 116, 30), fill: 'deep', depth: 0.4 },
29
+ ...lens(-124),
30
+ ...lens(-68),
31
+ { d: ellipse(4, -136, 8), fill: 'white' },
32
+ { d: ellipse(4, -110, 3), fill: 'ink', line: false },
33
+ ],
34
+ },
35
+ glow('ph', [120, -170], 24, [twinkle(46), twinkle(140, true)]),
36
+ ],
37
+ };
@@ -0,0 +1,2 @@
1
+ /** @deprecated Import from `@20baht/stickers/iso`; this path only re-exports it and is not a sticker. */
2
+ export * from '../iso.js';
@@ -0,0 +1,3 @@
1
+ // Not a sticker: the old home of the 3d geometry helpers, kept so `@20baht/stickers/icons/iso` still resolves.
2
+ /** @deprecated Import from `@20baht/stickers/iso`; this path only re-exports it and is not a sticker. */
3
+ export * from '../iso.js';
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const kaprao: Icon;
@@ -0,0 +1,70 @@
1
+ // Drawn for @20baht/stickers: khao kaprao, stir-fried holy basil with minced pork on rice, a fried egg on top.
2
+ import { hop, twinkle } from '../motions.js';
3
+ import { ellipse, poly, ring } from '../sticker.js';
4
+ import { DOWN, plate, steam, TABLE } from './food.js';
5
+ import { glow, LINE } from './shared.js';
6
+ const leaf = (x, y) => ({
7
+ d: ellipse(x, y, 22, 12),
8
+ fill: 'ok',
9
+ depth: 0.2,
10
+ });
11
+ const chilli = (x, y) => ({ d: ring(x, y, 11, 5), fill: 'hot', depth: 0.2 });
12
+ const EGG = poly([
13
+ [-130, -70],
14
+ [-80, -96],
15
+ [-30, -84],
16
+ [-12, -40],
17
+ [-30, 4],
18
+ [-84, 12],
19
+ [-128, -16],
20
+ ], 30);
21
+ export const kaprao = {
22
+ name: 'kaprao',
23
+ frames: 160,
24
+ line: LINE,
25
+ extrude: DOWN,
26
+ layers: [
27
+ { id: 'root', p: [250, 300], shapes: [] },
28
+ {
29
+ id: 'dish',
30
+ parent: 'root',
31
+ tilt: TABLE,
32
+ shapes: [
33
+ ...plate(180),
34
+ { d: ellipse(-60, -30, 96, 80), fill: 'paper', depth: 1.6 },
35
+ {
36
+ d: poly([
37
+ [10, -10],
38
+ [70, -60],
39
+ [130, -30],
40
+ [140, 40],
41
+ [90, 100],
42
+ [10, 90],
43
+ [-20, 40],
44
+ ], 24),
45
+ fill: 'deep',
46
+ depth: 0.8,
47
+ },
48
+ leaf(40, 0),
49
+ leaf(100, 20),
50
+ leaf(70, 70),
51
+ leaf(110, -20),
52
+ chilli(60, 40),
53
+ chilli(20, 60),
54
+ chilli(120, 60),
55
+ ],
56
+ },
57
+ {
58
+ parent: 'dish',
59
+ a: [-70, -40],
60
+ p: [-70, -40],
61
+ m: { ...hop, k: 0.7 },
62
+ shapes: [
63
+ { d: EGG, fill: 'white', depth: 0.4 },
64
+ { d: ellipse(-70, -40, 26), fill: 'gold', depth: 0.6 },
65
+ ],
66
+ },
67
+ steam('root', [-40, 10, 60], -90),
68
+ glow('root', [170, -60], 20, [twinkle(40), twinkle(130, true)]),
69
+ ],
70
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const keyPair: Icon;
@@ -0,0 +1,54 @@
1
+ // Drawn for @20baht/stickers (konmek asked for one): an SSH key pair, two keys cut alike on one ring, the
2
+ // private one in gold, the public one in white. The front key twists, the back one follows a beat later.
3
+ import { sparkle, sway, twist } from '../motions.js';
4
+ import { poly, rect, ring } from '../sticker.js';
5
+ import { EXT, FACE, glow, LINE } from './shared.js';
6
+ // a key with its bow centred on the origin, the blade running right along +x
7
+ const BLADE = poly([
8
+ [30, -16],
9
+ [196, -16],
10
+ [196, 34],
11
+ [178, 34],
12
+ [178, 16],
13
+ [170, 16],
14
+ [170, 46],
15
+ [146, 46],
16
+ [146, 16],
17
+ [30, 16],
18
+ ], 4);
19
+ const keyShapes = (fill) => [
20
+ { d: BLADE, fill, depth: 1 },
21
+ { d: ring(0, 0, 62, 24), fill, depth: 1 },
22
+ { d: rect(40, -24, 18, 48, 5), fill: 'deep', depth: 1 },
23
+ ];
24
+ // where each bow sits on the leaned face; each key turns about its bow
25
+ const BACK = [-70, -66];
26
+ const FRONT = [-92, 4];
27
+ export const keyPair = {
28
+ name: 'key-pair',
29
+ frames: 180,
30
+ line: LINE,
31
+ extrude: EXT,
32
+ layers: [
33
+ { id: 'root', a: [0, 0], p: [276, 282], m: { ...sway, k: 0.4 }, shapes: [] },
34
+ { id: 'face', parent: 'root', tilt: FACE, shapes: [] },
35
+ // the split ring both bows hang on
36
+ { parent: 'face', shapes: [{ d: ring(-112, -50, 76, 62), fill: 'grey', depth: 0.4 }] },
37
+ {
38
+ parent: 'face',
39
+ p: BACK,
40
+ r: -24,
41
+ m: { ...twist, at: 6, k: 0.7 },
42
+ shapes: keyShapes('white'),
43
+ },
44
+ {
45
+ parent: 'face',
46
+ p: FRONT,
47
+ r: 10,
48
+ m: twist,
49
+ shapes: keyShapes('gold'),
50
+ },
51
+ glow('root', [-160, -140], 24, sparkle(24)),
52
+ glow('root', [144, -162], 16, sparkle(96)),
53
+ ],
54
+ };
@@ -0,0 +1,3 @@
1
+ import type { Icon } from '../sticker.js';
2
+ /** A key turning in an unseen lock: one account that opens every app. */
3
+ export declare const key: Icon;
@@ -0,0 +1,37 @@
1
+ // From identity-service's sticker set, drawn on the fun-isometric kit by Kelvin Adithya (MIT, see LICENSE).
2
+ import { sparkle, twist } from '../motions.js';
3
+ import { poly, rect, ring } from '../sticker.js';
4
+ import { EXT, FACE, glow, LINE } from './shared.js';
5
+ const BLADE = poly([
6
+ [-20, -20],
7
+ [176, -20],
8
+ [176, 46],
9
+ [154, 46],
10
+ [154, 20],
11
+ [148, 20],
12
+ [148, 62],
13
+ [118, 62],
14
+ [118, 20],
15
+ [-20, 20],
16
+ ], 5);
17
+ /** A key turning in an unseen lock: one account that opens every app. */
18
+ export const key = {
19
+ name: 'key',
20
+ frames: 180,
21
+ line: LINE,
22
+ extrude: EXT,
23
+ layers: [
24
+ { id: 'key', p: [258, 262], m: twist, shapes: [] },
25
+ {
26
+ parent: 'key',
27
+ tilt: FACE,
28
+ shapes: [
29
+ { d: BLADE, fill: 'gold', depth: 1 },
30
+ { d: ring(-90, 0, 86, 36), fill: 'gold', depth: 1 },
31
+ { d: rect(-24, -32, 22, 64, 6), fill: 'deep', depth: 1 },
32
+ ],
33
+ },
34
+ glow('key', [-110, -96], 24, sparkle(20)),
35
+ glow('key', [150, -64], 16, sparkle(96)),
36
+ ],
37
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const keyboard: Icon;
@@ -0,0 +1,35 @@
1
+ // Drawn for @20baht/stickers: a keyboard modelled in 3d (see iso.ts); keys press one after another as text is typed.
2
+ import { press, twinkle } from '../motions.js';
3
+ import { block, solid } from '../iso.js';
4
+ import { glow, LINE } from './shared.js';
5
+ const BODY = block([-180, -80, 0], [360, 0, 0], [0, 160, 0], [0, 0, 24]);
6
+ const key = (c, r, w = 26) => solid(block([-164 + c * 33 + (r % 2) * 8, -64 + r * 32, 24], [w, 0, 0], [0, 24, 0], [0, 0, 12]), {
7
+ fill: 'grey',
8
+ top: 'white',
9
+ }, 2);
10
+ const PRESSED = [
11
+ [3, 2],
12
+ [6, 1],
13
+ [8, 3],
14
+ ];
15
+ const isPressed = (c, r) => PRESSED.some(([pc, pr]) => pc === c && pr === r);
16
+ const KEYS = [3, 2, 1].flatMap((r) => Array.from({ length: 10 }, (_, c) => c)
17
+ .filter((c) => !isPressed(c, r))
18
+ .flatMap((c) => key(c, r)));
19
+ export const keyboard = {
20
+ name: 'keyboard',
21
+ frames: 160,
22
+ line: LINE,
23
+ extrude: [0, 0],
24
+ layers: [
25
+ { id: 'kb', p: [250, 290], shapes: [] },
26
+ { parent: 'kb', shapes: [...solid(BODY, { fill: 'deep', top: 'main' }, 4), ...KEYS] },
27
+ ...PRESSED.map(([c, r], i) => ({
28
+ parent: 'kb',
29
+ m: { ...press, at: 10 + i * 18, k: 0.35 },
30
+ shapes: key(c, r),
31
+ })),
32
+ { parent: 'kb', m: { ...press, at: 70, k: 0.35 }, shapes: key(2, 0, 170) },
33
+ glow('kb', [170, -120], 22, [twinkle(40), twinkle(140, true)]),
34
+ ],
35
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const kite: Icon;
@@ -0,0 +1,53 @@
1
+ // Drawn for @20baht/stickers: a diamond kite as a slab on the leaned face, its tail of bows lagging as it drifts.
2
+ import { drift, sway, twinkle } from '../motions.js';
3
+ import { line, onFace, poly } from '../sticker.js';
4
+ import { EXT, FACE, glow, LINE } from './shared.js';
5
+ const TOP = [0, -150];
6
+ const RIGHT = [104, -24];
7
+ const FOOT = [0, 150];
8
+ const LEFT = [-104, -24];
9
+ const MID = [0, -24];
10
+ const bow = (x, y) => ({
11
+ d: poly([
12
+ [x - 24, y - 16],
13
+ [x + 24, y + 16],
14
+ [x + 24, y - 16],
15
+ [x - 24, y + 16],
16
+ ], 3),
17
+ fill: 'gold',
18
+ depth: 0.4,
19
+ });
20
+ export const kite = {
21
+ name: 'kite',
22
+ frames: 180,
23
+ line: LINE,
24
+ extrude: EXT,
25
+ layers: [
26
+ { id: 'kite', p: [260, 220], m: drift, shapes: [] },
27
+ {
28
+ parent: 'kite',
29
+ tilt: FACE,
30
+ a: FOOT,
31
+ p: onFace(FACE, FOOT),
32
+ m: { ...sway, k: 2.4, at: 6 },
33
+ shapes: [
34
+ { d: line(FOOT, [-28, 190], [18, 230], [-22, 270]), line: 7 },
35
+ bow(-28, 190),
36
+ bow(18, 230),
37
+ bow(-22, 270),
38
+ ],
39
+ },
40
+ {
41
+ parent: 'kite',
42
+ tilt: FACE,
43
+ shapes: [
44
+ { d: poly([TOP, RIGHT, FOOT, LEFT], 6), fill: 'hot', depth: 0.8 },
45
+ { d: poly([TOP, MID, LEFT], 4), fill: 'white' },
46
+ { d: poly([MID, RIGHT, FOOT], 4), fill: 'white' },
47
+ { d: line(TOP, FOOT), line: 4 },
48
+ { d: line(LEFT, RIGHT), line: 4 },
49
+ ],
50
+ },
51
+ glow('kite', [140, -150], 24, [twinkle(50), twinkle(140, true)]),
52
+ ],
53
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const kvm: Icon;
@@ -0,0 +1,53 @@
1
+ // Drawn for @20baht/stickers, modelled in 3d (see iso.ts).
2
+ import { slide, twinkle } from '../motions.js';
3
+ import { block, faceOf, ISO, quad, solid, stroke } from '../iso.js';
4
+ import { glow, LINE } from './shared.js';
5
+ // A rack console drawer: a 1U housing, its tray slid out with a keyboard, and a slim screen flipped up off the tray
6
+ const W = 270;
7
+ const LEAN = (12 * Math.PI) / 180;
8
+ // the rack it lives in: two posts and a top rail behind the drawer, and the 1U housing it slides out of
9
+ const POST = (x) => block([x, 40, -40], [18, 0, 0], [0, 18, 0], [0, 0, 270]);
10
+ const RAIL = block([-W / 2 - 30, 40, 212], [W + 60, 0, 0], [0, 18, 0], [0, 0, 18]);
11
+ const HOUSING = block([-W / 2 - 12, 40, -8], [W + 24, 0, 0], [0, 130, 0], [0, 0, 26]);
12
+ const TRAY = block([-W / 2, -130, 0], [W, 0, 0], [0, 170, 0], [0, 0, 12]);
13
+ const tray = faceOf(TRAY, 'top');
14
+ const UP = [0, Math.sin(LEAN) * 170, Math.cos(LEAN) * 170];
15
+ const BACK = [0, Math.cos(LEAN) * 8, -Math.sin(LEAN) * 8];
16
+ const LID = block([-W / 2, 40, 12], [W, 0, 0], BACK, UP);
17
+ const screen = faceOf(LID, 'front');
18
+ export const kvm = {
19
+ name: 'kvm',
20
+ frames: 180,
21
+ still: 0,
22
+ line: LINE,
23
+ extrude: [0, 0],
24
+ layers: [
25
+ { id: 'kvm', p: [250, 330], shapes: [] },
26
+ {
27
+ parent: 'kvm',
28
+ shapes: [
29
+ ...solid(POST(-W / 2 - 30), { fill: 'grey', front: 'white' }, 2),
30
+ ...solid(POST(W / 2 + 12), { fill: 'grey', front: 'white' }, 2),
31
+ ...solid(RAIL, { fill: 'grey', front: 'white' }, 2),
32
+ ...solid(HOUSING, { fill: 'deep', top: 'main' }, 3),
33
+ ],
34
+ },
35
+ // the drawer runs back into the housing and out again on its rails
36
+ {
37
+ parent: 'kvm',
38
+ m: slide(ISO([0, 34, 0]), 20, 40, 40),
39
+ shapes: [
40
+ ...solid(LID, { fill: 'grey', front: 'deep' }, 3),
41
+ { d: quad(screen, 0.05, 0.08, 0.9, 0.84, 3), fill: 'tint' },
42
+ ...[0.7, 0.55, 0.4].map((t, i) => ({
43
+ d: stroke(screen, [0.14, t], [i === 1 ? 0.6 : 0.8, t]),
44
+ })),
45
+ ...solid(TRAY, { fill: 'grey', top: 'white' }, 3),
46
+ { d: quad(tray, 0.07, 0.42, 0.86, 0.46, 3), fill: 'paper' },
47
+ ...[0.58, 0.72].map((t) => ({ d: stroke(tray, [0.12, t], [0.88, t]) })),
48
+ { d: quad(tray, 0.38, 0.08, 0.24, 0.26, 3), fill: 'paper' },
49
+ ],
50
+ },
51
+ glow('kvm', [160, -230], 24, [twinkle(60), twinkle(150, true)]),
52
+ ],
53
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const lamp: Icon;
@@ -0,0 +1,49 @@
1
+ // Drawn for @20baht/stickers: an angled desk lamp modelled in 3d (see object-drum.ts); its switch clicks and it lights.
2
+ import { press, twinkle } from '../motions.js';
3
+ import { line, poly } from '../sticker.js';
4
+ import { ISO } from '../iso.js';
5
+ import { drum } from './object-drum.js';
6
+ import { glow, LINE } from './shared.js';
7
+ const BASE = drum([-60, 20, 0], [0, 0, 26], 84, 80, { side: 'deep', cap: 'main' });
8
+ const ELBOW = [-30, 20, 190];
9
+ const HEAD = [70, 0, 250];
10
+ const MOUTH_AXIS = [40, -20, -80];
11
+ const SHADE = drum(HEAD, MOUTH_AXIS, 28, 72, { side: 'main', cap: 'gold' }, [0, 1, 0]);
12
+ const SWITCH = drum([-104, -20, 22], [0, 0, 14], 14, 14, { side: 'deep', cap: 'hot' });
13
+ // the light falls from the shade's mouth onto the desk in front of the base
14
+ const MOUTH = [HEAD[0] + MOUTH_AXIS[0], HEAD[1] + MOUTH_AXIS[1], HEAD[2] + MOUTH_AXIS[2]];
15
+ const POOL = drum([150, -50, 0], [0, 0, 1], 80, 80, { side: 'gold', cap: 'gold' });
16
+ const [mx, my] = ISO(MOUTH);
17
+ const BEAM = poly([
18
+ ISO([MOUTH[0] - 60, MOUTH[1] + 20, MOUTH[2]]),
19
+ ISO([MOUTH[0] + 60, MOUTH[1] - 20, MOUTH[2]]),
20
+ ISO([250, -60, 0]),
21
+ ISO([40, -20, 0]),
22
+ ], 2);
23
+ export const lamp = {
24
+ name: 'lamp',
25
+ frames: 180,
26
+ still: 100,
27
+ line: LINE,
28
+ extrude: [0, 0],
29
+ layers: [
30
+ { id: 'lamp', p: [240, 360], shapes: [] },
31
+ {
32
+ parent: 'lamp',
33
+ a: [mx, my],
34
+ p: [mx, my],
35
+ m: [twinkle(38), twinkle(140, true)],
36
+ shapes: [...POOL.shapes.slice(1), { d: BEAM, fill: 'gold', line: false }],
37
+ },
38
+ {
39
+ parent: 'lamp',
40
+ shapes: [
41
+ ...BASE.shapes,
42
+ { d: line(ISO([-60, 20, 22]), ISO(ELBOW), ISO(HEAD)), line: 18 },
43
+ ...SHADE.shapes,
44
+ ],
45
+ },
46
+ { parent: 'lamp', m: { ...press, k: 0.3 }, shapes: SWITCH.shapes },
47
+ glow('lamp', [170, -280], 24, [twinkle(44), twinkle(140, true)]),
48
+ ],
49
+ };
@@ -0,0 +1,2 @@
1
+ import type { Icon } from '../sticker.js';
2
+ export declare const laptop: Icon;