๐Ÿ“ฆ aquaticcalf / samcan

canvas

โ˜… 5 stars โ‘‚ 0 forks ๐Ÿ‘ 5 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/aquaticcalf/samcan.git
HTTPS git clone https://github.com/aquaticcalf/samcan.git
SSH git clone git@github.com:aquaticcalf/samcan.git
CLI gh repo clone aquaticcalf/samcan
sam sam refactor demo d49fc66 4 hours ago ๐Ÿ“ History
๐Ÿ“‚ dev View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ .husky
๐Ÿ“ .kiro
๐Ÿ“ .scripts
๐Ÿ“ core
๐Ÿ“ demo
๐Ÿ“ docs
๐Ÿ“ notes
๐Ÿ“ test
๐Ÿ“ wrapper
๐Ÿ“„ .gitignore
๐Ÿ“„ biome.json
๐Ÿ“„ bun.lock
๐Ÿ“„ index.ts
๐Ÿ“„ license
๐Ÿ“„ package.json
๐Ÿ“„ readme.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ README.md

samcan

what?

samcan is an animation runtime for the web, my attempt at resurrecting Flash

install

npm

npm install samcan

bun

bun add samcan

yarn

yarn add samcan

pnpm

pnpm add samcan

import

import { AnimationRuntime } from "samcan"

lines of code

xcodecommentsemptytotal
core86023758171414074
test679627516888759
total153984033340222833

benchmarks

timeline

nameops/slatency avg (ns)samples
timeline-eval-10-tracks1225841 ยฑ 0.06%915.52 ยฑ 0.20%546136
timeline-eval-100-tracks124915 ยฑ 0.20%8806.5 ยฑ 0.51%56777
timeline-eval-500-tracks26831 ยฑ 0.40%40710 ยฑ 0.84%12283

scene graph

nameops/slatency avg (ns)samples
scene-world-transform-1k-nodes1002282 ยฑ 0.09%1218.6 ยฑ 1.08%410298
scene-world-transform-5k-nodes1011793 ยฑ 0.08%1172.1 ยฑ 0.96%426584

star history

star history chart

badges

npm license typescript


built with  kiro