# halfring

> Draw half ring being quite true to the original

Latest version **1.0.2** (published 2019-03-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install halfring
pnpm add halfring
yarn add halfring
bun add halfring
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-03-14 |
| First published | 2019-03-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lucy zhu |
| Maintainers | zwf193071 |

## Links

- npm: https://www.npmjs.com/package/halfring
- npm.io page: https://npm.io/package/halfring

## Recent versions

- 1.0.2 (latest) — 2019-03-14
- 1.0.0 — 2019-03-14

## README

![HalfRing Logo](./logo.png)

# HalfRing
Draw half ring with canvas which is quite true to the original.

# Installation
```
npm install halfring -g

```

# Usage
With a canvas like that:
```
<canvas id="canvas" width="800" height="800"></canvas>

```
You can draw a half ring with the code below:
```
  const HalfRing = require('halfring')
  const ring = new HalfRing({
    canvas: 'canvas', // The id of canvas
    percent: 90 // The percentage of the inner ring
  })
  ring.drawRing() // draw the moving ring

```

# License
MIT.

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