Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/retraigo/cubic-bezier
Generate a curve with a cubic-bezier function in TypeScript.
https://github.com/retraigo/cubic-bezier
Last synced: 8 days ago
JSON representation
Generate a curve with a cubic-bezier function in TypeScript.
- Host: GitHub
- URL: https://github.com/retraigo/cubic-bezier
- Owner: retraigo
- License: mit
- Created: 2022-08-16T09:57:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-16T13:53:40.000Z (about 2 years ago)
- Last Synced: 2024-10-11T20:57:31.802Z (about 1 month ago)
- Language: TypeScript
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CubicBezier
Generate a curve with a cubic-bezier in TypeScript.## Usage
```ts
import CubicBezier from "https://deno.land/x/[email protected]/mod.ts"import CubicBezier from "./mod.ts"
const bezier = new CubicBezier(.5,.7,.19,.96);
console.log(bezier.renderAsCanvas(800).toDataURL())
```![cubic-bezier(.5,.7,.19,.96)](https://raw.githubusercontent.com/retraigo/cubic-bezier/main/examples/curve.png)
## License
MIT as always.