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

https://github.com/schlechtwetterfront/rfw

2D rendering library for WebGL.
https://github.com/schlechtwetterfront/rfw

javascript rendering typescript visualization webgl

Last synced: 3 months ago
JSON representation

2D rendering library for WebGL.

Awesome Lists containing this project

README

        

# `rfw` [![npm](https://img.shields.io/npm/v/rfw2d)](https://www.npmjs.com/package/rfw2d)


Documentation
·
Samples
·
Reference

2D rendering library for WebGL.

- Get started easily with apps, providing a default "bundle" of systems to create your application from
- Tickers: run logic in a manner similar to ECS systems
- Scene (graphs)
- Low abstraction render tooling
- Math utility modules
- Change tracking
- Performance in mind
- Minimal dependencies

## Getting Started

Install the package from `npm`:

```sh
npm install rfw2d
```

And import from `rfw2d`:

```ts
import { Vec2 } from 'rfw2d';
```

For more instructions and samples, check out the [Guide](https://schlechtwetterfront.github.io/rfw/guide/).

## Contribute

### Development

Use `npm run dev ` to run any of the apps in a Vite dev web server. E.g.:

```sh
npm run dev samples/bunnymark
```

to run a sample.

### Tests

Use `npm run test` to watch tests and `npm run types:watch` to continuously check types.

### Docs

Use `npm run docs:dev` to start the doc dev web server. The benchmarks are available under `benchmarks/`.

The reference is built separately, with `npm run reference:build` and does not have a dev version.

## License

[MIT](https://opensource.org/licenses/MIT)