Miss any of our Open RFC calls?Watch the recordings here! »

@seedalpha/blocky

1.0.10 • Public • Published

Seed Blocky

Generate Identicon image based similar to Github Identicon

Changelog

1.0.0

  • Init commit

Installation

$ npm install --save-dev seed-blocky;

Developement

$ git clone git@github.com:seedalpha/blocky.git
$ cd blocky

Usage

var blocky = require('seed-blocky');

// then find the element you want position the canvas within 

document.querySelector(el)
  .appendChild(blocky.create())

This will create a random canvas image of 50x50.

Vuejs

exports = module.exports = {
  template: require('./template.html'),
  attached: function() {
    this.$el.firstChild.appendChild(
      block.create(opts)
    )
  }
}

Options

color:
bgcolor:
seed: 
size: 
scale:

- size x scale = size of resulting canvas image

TODO

  • Add Tests
  • Clean up documentation and index.js

Contributors

Vladimir Popov vlad@seedalpha.net

License

©2014 Seedalpha

Install

npm i @seedalpha/blocky

DownloadsWeekly Downloads

1

Version

1.0.10

License

©2014 Seedalpha

Unpacked Size

3.72 kB

Total Files

3

Last publish

Collaborators

  • avatar
  • avatar