# canvas-djs

> Canvas utils

Latest version **1.0.2** (published 2020-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install canvas-djs
pnpm add canvas-djs
yarn add canvas-djs
bun add canvas-djs
```

## 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 | 2020-01-21 |
| First published | 2020-01-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | laziji |
| Maintainers | laziji |

## Links

- npm: https://www.npmjs.com/package/canvas-djs
- Repository: https://github.com/GitHub-Laziji/canvas-utils
- Homepage: https://github.com/GitHub-Laziji/canvas-utils#readme
- Issues: https://github.com/GitHub-Laziji/canvas-utils/issues
- npm.io page: https://npm.io/package/canvas-djs

## Recent versions

- 1.0.2 (latest) — 2020-01-21
- 1.0.1 — 2020-01-21
- 1.0.0 — 2020-01-21

## README

# canvas-utils
Canvas utils

## 演示
[https://codepen.io/laziji/pen/ZEYVWMe](https://codepen.io/laziji/pen/ZEYVWMe)


# 使用

```html
<script src="https://unpkg.com/canvas-djs/dist/canvas-d.js"></script>
<script>
  CanvasUtils.dim(canvas, 1, 3);
</script>
```

```js
// 原型
// dim(canvas, pixel, radius);
// canvas 画布对象
// pixel 像素块大小 1 ~
// radius 模糊半径 1 ~ , 从当前像素开始计算
// 纯马赛克 dim(canvas, 3, 1);
// 纯模糊 dim(canvas, 1, 3);
const { dim } = require("../src/index");
dim(canvas, 3, 5);
```

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