Skip to content

acrylc/x-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 30, 2014
1fc829e · May 30, 2014

History

20 Commits
May 28, 2014
May 30, 2014
May 29, 2014
May 28, 2014
May 30, 2014
May 24, 2014
May 24, 2014
May 30, 2014
May 25, 2014
May 22, 2014
May 30, 2014
May 24, 2014
May 30, 2014
May 30, 2014

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