Difference between revisions of "LifeViewer"
Jump to navigation
Jump to search
m |
|||
(36 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
|platform = HTML5 / Javascript | |platform = HTML5 / Javascript | ||
}} | }} | ||
'''LifeViewer''' is a scriptable pattern viewer and editor used to simulate [[Life]] and other [[ | '''LifeViewer''' is a scriptable pattern viewer and editor used to simulate [[Life]] and a wide range of other 1D and 2D [[cellular automata]]. | ||
If you want to use LifeViewer on your own site then the latest release can be downloaded [http://lazyslug.com/lifeview/plugin/js/release/ here]. | |||
<center>{{LV:Viewer|x = 59, y = 7, rule = B3/S23 | <center>{{LV:Viewer|x = 59, y = 7, rule = B3/S23 | ||
Line 27: | Line 30: | ||
#C [[ T 1050 DEPTH 0 ANGLE 0 AUTOFIT "#T" ]] | #C [[ T 1050 DEPTH 0 ANGLE 0 AUTOFIT "#T" ]] | ||
#C [[ T 1100 X 0 Y 0 ZOOM 0.25 THEME CUSTOM ]]}}</center> | #C [[ T 1100 X 0 Y 0 ZOOM 0.25 THEME CUSTOM ]]}}</center> | ||
Rule support: | |||
* 2-state [[Margolus]] rules. | |||
* 2-state [[Totalistic Life-like cellular automaton|Outer-totalistic Life-like cellular automata]] (from ranges 1 to 500, including [[Larger than Life]]). | |||
* 2-state [[non-totalistic Life-like cellular automata|Isotropic non-totalistic Life-like cellular automata]] (for range-1 Moore and range-1 hexagonal). | |||
* 2-state [[Non-isotropic Life-like cellular automata]] (for range-1 Moore, hexagonal and von Neumann). | |||
* [[Generations]] rules (as an extension of the outer-totalistic, non-totalistic and non-isotropic rulespaces). | |||
* [[Alternating rule|Alternating]] rules. | |||
* [[Partitioned cellular automata]] (PCA) rules. | |||
* [https://mathworld.wolfram.com/ElementaryCellularAutomaton.html Elementary] cellular automata (even numbers only). | |||
* [[LifeHistory|[R]History]] rules. | |||
* [http://golly.sourceforge.net/Help/formats.html#rule RuleTable] rules from a [https://conwaylife.com/wiki/Special:AllPages?namespace=3794 repository]. | |||
Grid and neighbourhood support: | |||
* square grid: | |||
** outer-totalistic: | |||
*** [[Moore neighbourhood|Moore]] | |||
*** [[von Neumann neighbourhood|von Neumann]] | |||
*** circular | |||
*** cross | |||
*** L2 | |||
*** saltire | |||
*** star | |||
*** checkerboard | |||
*** hash | |||
*** custom (CoordCA) | |||
** non-totalistic | |||
** non-isotropic | |||
** Margolus | |||
** PCA | |||
* hexagonal or offset-square grid: | |||
** outer totalistic: | |||
*** hexagonal | |||
*** tripod | |||
*** asterisk | |||
*** custom (CoordCA) | |||
** non-totalistic | |||
** non-isotropic | |||
* triangular grid: | |||
** outer totalistic: | |||
*** triangular Moore | |||
*** triangular edges | |||
*** triangular vertices | |||
*** triangular inner | |||
*** triangular outer | |||
*** custom (CoordCA) | |||
[[Bounded grid]] types: | |||
* Plane | |||
* Cylinder (with optional shift) | |||
* Torus (with optional shift) | |||
* Klein-bottle (with optional shift) | |||
* Cross-surface | |||
* Sphere | |||
For range 2+ neighbourhoods only Plane, and Torus (without shift) are supported. | |||
Native support for [[BSFKL]], [[Extended Generations]] and [[deficient]] rules is also planned.<ref name="post68678" /><ref name="post68691" /><ref name="post86409" /> Support for 1D totalistic rules may also be planned.<ref name="post84188" /> | |||
LifeViewer features: | |||
* Smooth non-integer zoom with anti-aliasing and rotation. | |||
* Colour themes with cell history and longevity. | |||
* Pseudo 3D layers and stars. | |||
* Multiple ways to automatically track patterns with the camera as they evolve. | |||
* Script language that allows many features to be customized including Waypoint animations. | |||
* Support for multiple embedded LifeViewers and/or a single popup LifeViewer. | |||
* Ability to step back to earlier generations for all patterns and reverse playback for reversible Margolus and PCA patterns. | |||
* Random pattern and rule generation. | |||
* Pattern annotation with Labels, Arrows, Lines and Polygons. | |||
* Programatically pasting cells onto the grid at defined intervals (for example: glider injection). | |||
* Identification of oscillator and spaceship periods. | |||
* Automatic scaling for high DPI displays including smartphones and tablets. | |||
* Editor with unlimitied undo/redo and multiple clipboards. | |||
The keyboard shortcuts are shown below: | |||
[[File:hotkeys.png|1024px]] | |||
==References== | |||
<references> | |||
<ref name="post68678">{{LinkForumThread | |||
|format = ref | |||
|title = Re: Pattern viewer for forum threads | |||
|p = 68678 | |||
|author = Chris Rowett | |||
|date = January 26, 2019 | |||
}}</ref> | |||
<ref name="post68691">{{LinkForumThread | |||
|format = ref | |||
|title = Re: Pattern viewer for forum threads | |||
|p = 68691 | |||
|author = Chris Rowett | |||
|date = January 26, 2019 | |||
}}</ref> | |||
<ref name="post86409">{{LinkForumThread | |||
|format = ref | |||
|title = Re: Pattern viewer for forum threads | |||
|p = 86409 | |||
|author = Chris Rowett | |||
|date = December 20, 2019 | |||
}}</ref> | |||
<ref name="post84188">{{LinkForumThread | |||
|format = ref | |||
|title = Re: Pattern viewer for forum threads | |||
|p = 84188 | |||
|author = Chris Rowett | |||
|date = October 15, 2019 | |||
}}</ref> | |||
</references> | |||
==External links== | ==External links== | ||
* [ | * [https://lazyslug.com/lifeview/plugin/version.txt Release notes] | ||
* [ | * [https://lazyslug.com/lifeview/ LifeViewer homepage] | ||
* [ | * [https://lazyslug.com/lifeview/plugin/ LifeViewer files] | ||
{{LinkLexicon|lex_l.htm#lifeviewer}} | {{LinkLexicon|lex_l.htm#lifeviewer}} | ||
===Forum threads=== | ===Forum threads=== | ||
{{LinkForumThread|f=7|t=1026|title=LifeViewer - Life simulator in HTML5}} | {{LinkForumThread|f=7|t=1026|title=LifeViewer - Life simulator in HTML5}} | ||
{{LinkForumThread|f=3|t=1622|title=Pattern viewer for forum threads}} | {{LinkForumThread|f=3|t=1622|title=Pattern viewer for forum threads}} |
Revision as of 14:17, 22 July 2020
LifeViewer | |
Homepage | Click here |
---|---|
Purpose | Life simulation |
Created by | Chris Rowett |
Platform | HTML5 / Javascript |
LifeViewer is a scriptable pattern viewer and editor used to simulate Life and a wide range of other 1D and 2D cellular automata.
If you want to use LifeViewer on your own site then the latest release can be downloaded here.
Rule support:
- 2-state Margolus rules.
- 2-state Outer-totalistic Life-like cellular automata (from ranges 1 to 500, including Larger than Life).
- 2-state Isotropic non-totalistic Life-like cellular automata (for range-1 Moore and range-1 hexagonal).
- 2-state Non-isotropic Life-like cellular automata (for range-1 Moore, hexagonal and von Neumann).
- Generations rules (as an extension of the outer-totalistic, non-totalistic and non-isotropic rulespaces).
- Alternating rules.
- Partitioned cellular automata (PCA) rules.
- Elementary cellular automata (even numbers only).
- [R]History rules.
- RuleTable rules from a repository.
Grid and neighbourhood support:
- square grid:
- outer-totalistic:
- Moore
- von Neumann
- circular
- cross
- L2
- saltire
- star
- checkerboard
- hash
- custom (CoordCA)
- non-totalistic
- non-isotropic
- Margolus
- PCA
- outer-totalistic:
- hexagonal or offset-square grid:
- outer totalistic:
- hexagonal
- tripod
- asterisk
- custom (CoordCA)
- non-totalistic
- non-isotropic
- outer totalistic:
- triangular grid:
- outer totalistic:
- triangular Moore
- triangular edges
- triangular vertices
- triangular inner
- triangular outer
- custom (CoordCA)
- outer totalistic:
Bounded grid types:
- Plane
- Cylinder (with optional shift)
- Torus (with optional shift)
- Klein-bottle (with optional shift)
- Cross-surface
- Sphere
For range 2+ neighbourhoods only Plane, and Torus (without shift) are supported.
Native support for BSFKL, Extended Generations and deficient rules is also planned.[1][2][3] Support for 1D totalistic rules may also be planned.[4]
LifeViewer features:
- Smooth non-integer zoom with anti-aliasing and rotation.
- Colour themes with cell history and longevity.
- Pseudo 3D layers and stars.
- Multiple ways to automatically track patterns with the camera as they evolve.
- Script language that allows many features to be customized including Waypoint animations.
- Support for multiple embedded LifeViewers and/or a single popup LifeViewer.
- Ability to step back to earlier generations for all patterns and reverse playback for reversible Margolus and PCA patterns.
- Random pattern and rule generation.
- Pattern annotation with Labels, Arrows, Lines and Polygons.
- Programatically pasting cells onto the grid at defined intervals (for example: glider injection).
- Identification of oscillator and spaceship periods.
- Automatic scaling for high DPI displays including smartphones and tablets.
- Editor with unlimitied undo/redo and multiple clipboards.
The keyboard shortcuts are shown below:
References
- ↑ Chris Rowett (January 26, 2019). Re: Pattern viewer for forum threads (discussion thread) at the ConwayLife.com forums
- ↑ Chris Rowett (January 26, 2019). Re: Pattern viewer for forum threads (discussion thread) at the ConwayLife.com forums
- ↑ Chris Rowett (December 20, 2019). Re: Pattern viewer for forum threads (discussion thread) at the ConwayLife.com forums
- ↑ Chris Rowett (October 15, 2019). Re: Pattern viewer for forum threads (discussion thread) at the ConwayLife.com forums
External links
- LifeViewer at the Life Lexicon
Forum threads
- LifeViewer - Life simulator in HTML5 (discussion thread) at the ConwayLife.com forums
- Pattern viewer for forum threads (discussion thread) at the ConwayLife.com forums