# bu.js

> A JavaScript 2D graphics library based on HTML5 Canvas

Latest version **0.5.0-beta.2** (published 2019-08-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install bu.js
pnpm add bu.js
yarn add bu.js
bun add bu.js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0-beta.2 |
| Published | 2019-08-12 |
| First published | 2017-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 597.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Jarvis Niu |
| Maintainers | jarvisniu |
| Keywords | HTML5, Canvas, 2D, graphics, library |

## Links

- npm: https://www.npmjs.com/package/bu.js
- Repository: https://github.com/jarvisniu/bu.js
- Homepage: https://github.com/jarvisniu/bu.js#readme
- Issues: https://github.com/jarvisniu/bu.js/issues
- npm.io page: https://npm.io/package/bu.js

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.5.0-beta.2 (latest) — 2019-08-12
- 0.5.0-beta.1 — 2019-08-12
- 0.4.0 — 2017-05-05

## README

# bu.js

A HTML5 Canvas graphics library

[![Bu.js Logo](logo.png)](http://jarvisniu.com/bu.js/)

[Demos](https://unpkg.com/bu.js/index.html) -
[Guides](https://github.com/jarvisniu/bu.js/wiki/Guides) -
[API](https://github.com/jarvisniu/bu.js/wiki/API) -
[ChangeLog](CHANGELOG.md) -
[Download](https://unpkg.com/bu.js/build/bu.js)

## Hello World

``` html
<!DOCTYPE html>
<html>
<body>
  <script src="https://unpkg.com/bu.js/build/bu.js"></script>
  <script type="text/javascript">
    var bu = new Bu({
      objects: {
        sun: new Bu.Circle(40).fill("#F40").stroke("#820"),
        earth: new Bu.Circle(20).fill("#06F").stroke("#038"),
        moon: new Bu.Circle(10).fill("#FF0").stroke("#880"),
      },
      scene: {
        sun: {
          earth: {
            moon: {}
          }
        }
      },
      update() {
        this.sun.rotation += 0.02
        this.earth.rotation += 0.1
      },
    })
  </script>
</body>
</html>
```

## License

MIT

---
_Source: https://npm.io/package/bu.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
