Difference between revisions of "User:Nathaniel/Archives/Help:Online tool at ConwayLife.com"

From LifeWiki
Jump to navigation Jump to search
(added info about saving static images)
m (tweaked some phrasing)
Line 5: Line 5:


==Loading patterns==
==Loading patterns==
There are three ways to load a [[pattern]] into the applet (besides drawing the pattern yourself). You may load the pattern from a file on your hard drive or load the pattern from the online database either via the applet or via querystring.
There are three ways to load an existing [[pattern]] into the applet. You may load the pattern from a file on your hard drive, or from the online database via either the applet or querystring.


===Load from file===
===Load from file===

Revision as of 17:25, 11 March 2009

The online tool at ConwayLife.com contains many features hidden under its surface, and this page will help you find and use each of them. If you continue to have trouble using the tool, please ask questions on the talk page.

Getting started

The tool that loads when you visit ConwayLife.com is a Java-based tool for exploring Conway's Game of Life, which means that you must have Java installed on your computer for it to run. Most new computers and web browsers will come with Java already installed, but if the applet will not load for you then you can download and install Java from www.java.com.

Loading patterns

There are three ways to load an existing pattern into the applet. You may load the pattern from a file on your hard drive, or from the online database via either the applet or querystring.

Load from file

You can load in patterns that are saved in RLE, Life 1.05, Life 1.06, or .cells format. To do so, select

Load -> From File

and then choose the file from your hard drive. Note that the applet will not accept files larger than 100 kB in size.

Load from online database (via applet)

To load a pattern that is saved in the online database, simply select

Load -> Online Database

and type the name of the pattern. Spaces and capitalization are ignored, as are special characters like apostrophes and slashes. Most well-known patterns already exist in the online database, as do all patterns listed in LifeWiki. You may also load any patterns that you (or another user) saved to the online database using this same form.

Load from online database (via querystring)

To load a pattern that is saved in the online database via querystring simply append "?p=patternname", without quotes, to the end of the website URL and replace patternname with the name of the pattern that you wish to load. Due to website URL restrictions, it is recommended that you remove all spaces and special characters from the name of the pattern before trying to access it in this way. You may load both pre-defined patterns and user-saved patterns in this way.

Examples
Glider www.conwaylife.com?p=glider
Gosper glider gun www.conwaylife.com?p=gosperglidergun
17c/45 reaction www.conwaylife.com?p=17c45reaction

Saving images

ConwayLife.com provides comprehensive tools for creating both static and animated images of patterns. Static images can be created via the applet or via a special querystring URL, but animated images can only be created via the applet. In all cases, you can not create images with width or height greater than 800 pixels.

Saving static images (via the applet)

Static images can be saved in BMP, GIF, or PNG format depending on your preference, with PNG being the default. To save an image of a pattern, first load your pattern into the applet as you would like it to appear. Note that all zoom and display settings that you have selected will carry over to the created image. Once the image appears in the applet as desired, select

Save -> Download Image

Note that an image name is optional - if that field is left blank then a random name will be generated for the image. The padding field specifies how many rows and columns of dead cells you want to appear around the edge of the pattern in the image.

Saving static images (via querystring)

This method allows you to create static images without actually loading the applet at all. To create an image, simply visit www.conwaylife.com/image.aspx and append some of the following querystring parameters. Examples of their use are provided further down.

Parameter Default value Description
bc FFFFFF (white) The background color in HTML hexadecimal format.
cc 000000 (black) The cell color in HTML hexadecimal format.
format png The file format of the image to be produced. Acceptable values are bmp, gif, and png.
gc C0C0C0 (light gray) The grid color in HTML hexadecimal format.
grid Floor((ppc + 12) / 16) The width of the grid lines.
h The pattern's height The height (in cells) of the pattern image, excluding any padding specified by the pad parameter.
name Random name The name of the image that will appear if you try to save it to your hard drive.
pad 1 The number of rows and columns of dead cells that should appear around the outer edge of the pattern.
ppc 8 The number of pixels per cell.
rle b (empty pattern) An RLE encoding of a pattern.
shape s (square) The shape that the cells should be. Acceptable values are s (for square) and c (for circle).
w The pattern's width The width (in cells) of the pattern image, excluding any padding specified by the pad parameter.