acrylc / x-life

A web component for Conway's Game of Life. Built with Polymer.

Home Page:acrylc.github.io/x-life

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A web component for Conway's Game of Life. Built with Polymer.

acrylc.github.io/x-life


Languages

Language:CSS 98.4%Language:JavaScript 1.6%