Skip to content

A chidorify is check pattern maker. Output in SVG format.

Notifications You must be signed in to change notification settings

niiyz/chidorify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chidorify Build Status npm version

chidorify is check pattern maker.

screenshot

Install

npm install chidorify --save

Example

'use strict';

import { Chidorify } from 'chidorify';

const design = [
    [0, 1, 1, 0, 0, 1, 1, 0],
    [1, 1, 0, 0, 1, 1, 0, 0],
    [1, 0, 0, 1, 1, 0, 0, 1],
    [0, 0, 1, 1, 0, 0, 1, 1],
    [0, 1, 1, 0, 0, 1, 1, 0],
    [1, 1, 0, 0, 1, 1, 0, 0],
    [1, 0, 0, 1, 1, 0, 0, 1],
    [0, 0, 1, 1, 0, 0, 1, 1]
];

const deepColors  = ['ff1493', '191970', '556b2f', 'cd5c5c'];
const lightColors = ['eee8aa', 'fafad2', 'ffe4e1', 'ffff00'];

const chidorify = new Chidorify(design, deepColors, lightColors);
const svg = chidorify.run();

Output SVG

https://jsfiddle.net/niiyz/duc9ffg7/

About

A chidorify is check pattern maker. Output in SVG format.

Resources

Stars

Watchers

Forks

Packages

No packages published