Skip to content

canvas

License

Notifications You must be signed in to change notification settings

aquaticcalf/samcan

Repository files navigation

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

x code comments empty total
core 8602 3758 1714 14074
test 6796 275 1688 8759
total 15398 4033 3402 22833

benchmarks

timeline
name ops/s latency avg (ns) samples
timeline-eval-10-tracks 1225841 ± 0.06% 915.52 ± 0.20% 546136
timeline-eval-100-tracks 124915 ± 0.20% 8806.5 ± 0.51% 56777
timeline-eval-500-tracks 26831 ± 0.40% 40710 ± 0.84% 12283
scene graph
name ops/s latency avg (ns) samples
scene-world-transform-1k-nodes 1002282 ± 0.09% 1218.6 ± 1.08% 410298
scene-world-transform-5k-nodes 1011793 ± 0.08% 1172.1 ± 0.96% 426584

star history

star history chart

badges

npm license typescript


built with  kiro

About

canvas

Resources

License

Stars

Watchers

Forks

Sponsor this project