functional-paint

0.3.3 • Public • Published

npm version Build Status Dev dependency Status

functional-paint

This is a JavaScript library for manipulating image buffers with pure functions. It's not the most efficient way of doing this, and you probably won't be able to use this library in a performance-critical project. It's just for practicing image processing algorithms and functional programming.

Installation

This module is distributed via npm:

npm install functional-paint

Usage

import FunPaint from 'functional-paint';

const canvas = FunPaint.createImageBuffer(16, 16);
const color = [0, 0, 0, 0];

FunPaint.drawRect(canvas, 16, true, 0, 0, 16, 16, color);

This code is released under the MIT license, feel free to do whatever you want with it.

Readme

Keywords

none

Package Sidebar

Install

npm i functional-paint

Weekly Downloads

10

Version

0.3.3

License

MIT

Unpacked Size

8.01 kB

Total Files

8

Last publish

Collaborators

  • andormade