Skip to content

Latest commit

 

History

History
executable file
·
46 lines (31 loc) · 1.17 KB

README.md

File metadata and controls

executable file
·
46 lines (31 loc) · 1.17 KB

x-life

See the component page for more information.

##Install

Install using Bower :

bower install x-life --save

Usage

<x-life> is a web component that renders a Conway's Game of Life instance.

  1. Import polymer:

    <script src="bower_components/platform/platform.js"> </script>
  2. Import x-life:

    <link rel='import' href="bower_components/x-life/dist/x-life.html"> 
  3. Enjoy!

     <x-life> </x-life>

<x-life>

Options

Attribute Options Default Description
width int 500 Specifies the width of the GOL grid.
height int 500 Specifies the height of the GOL grid.
backgroundColor string white Specifies the background color, in rgb or hex.
cellColor string black Specifies the cell color, in rgb or hex.
cellSize float 2 Specifies the pixel size of a cell.