Skip to content
/ lir Public

2D cellular automaton, part of which defines its birth/death rules

License

Notifications You must be signed in to change notification settings

serhon/lir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Life-Including-Rules

2D cellular automaton, part of which defines its birth/death rules.

Actipaper (draft): https://serhon.github.io/lir/

Embedding

Versions of the script are accumulated in garette. While you could embed it like this:

<head>
	...
	<script type="text/javascript">LIR = {fieldSizeLog: 7, framerate: 20, showAgecolors: true}</script>
	...
</head>
<body>
	...
	<script src="https://github.com/serhon/lir/garette/life_inc_rules-0.3.0.js"> type="text/javascript"></script>
	...
</body>

(see index.html for an example of setting all parameters that can be set with LIR object), it is unsafe to embed scripts from untrusted sources. Thus the better way is to copy .js to your server, read it thoroughly to be sure there are no nasty things, and only then embed it like this:

<script src="/scripts/life_inc_rules-0.3.0.js"> type="text/javascript"></script>

If you modify the script, please rename it or keep the link to origin.

About

2D cellular automaton, part of which defines its birth/death rules

Topics

Resources

License

Stars

Watchers

Forks