Skip to content

acrylc/x-life

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published