Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.