User:Book: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(61 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{EmbedViewer
{|
|rle = 3o$o2bo12bo$3o3b3o2b3o2bobo$o2bo2bobo2bobo2b2o$3o3b3o2b3o2bobo!
|{{EmbedViewer
|rle         = 3o$o2bo12bo$3o3b3o2b3o2bobo$o2bo2bobo2bobo2b2o$3o3b3o2b3o2bobo!
|position    = center
|position    = center
|viewerconfig = #C [[ THUMBSIZE 2 ]]
|viewerconfig = #C [[ THUMBSIZE 2 ]]
|caption      = Lifespan 4700
|caption      = Lifespan 4700
}}
}}
==Under Construction==
|}
This is my sandbox.


==Getting started==
[https://catagolue.hatsya.com/object/xp0_book/b3s23 xp0_book]
===Download the LifeViewer plug-in===
*Use this link: [http://lazyslug.com/lifeview/plugin/js/release/ download]
*The javascript code will be displayed in your browser
*Do a "Save" or "Save as..." and save lv-plugin.js where you want it
*In this tutorial, we assume the plug-in is in the same folder as your html file


===Lesson 1: Hello World--web page with glider in viewer===
*[[User:Book/Sandbox|My sandbox]]
*A simple web page with a glider in a LifeViewer
*[[User:Book/Sandbox/WIP]]
*Paste the code below in your text editor, save it and run it
*[[User:Book/Sandbox/WIP2]]
[[image:tutoriallvpluginex1.png|350px]]
<pre>
&lt;!DOCTYPE html>
&lt;html>
&lt;head>
&lt;meta name="LifeViewer" content="viewer textarea"> &lt;!--required tag-->
&lt;script src="lv-plugin.js">&lt;/script> &lt;!--assumes plug-in is in the same directory as html file-->
&lt;/head>
&lt;body>
&lt;!--viewer container-->
&lt;div class="viewer"> &lt;!--class=viewer is required-->
&lt;textarea>bo$2bo$3o!&lt;/textarea>&lt;br/> &lt;!--textarea required in viewer container, with glider rle-->
&lt;canvas></canvas> &lt;!--canvas required in viewer container-->
&lt;/div>
&lt;!--end viewer container-->
&lt;/body>
&lt;/html>
</pre>


===Lesson 2: Add some style===
==Principles for Editing the Wiki==
*A simple web page with a glider in a LifeViewer
*The wiki should be authoritative and substantive
*Paste this in your text editor, save it and run it
*The wiki should be welcoming to the uninitiated and casual user as well as the expert
[[image:tutoriallvpluginex2.png|350px]]
*Err on the side of explaining concepts and terminology
<pre>
*Err on the side of giving/showing examples
&lt;!DOCTYPE html>
*CGOL is visual: show stuff
&lt;html>
*Avoid dead links as much as possible (shed the red)
&lt;head>
*Upload missing pattern static images
&lt;meta name="LifeViewer" content="viewer textarea"> &lt;!--required tag-->
===Missing image report===
&lt;script src="lv-plugin.js">&lt;/script> &lt;!--assumes plug-in is in the same directory as html file-->
{{Purge}} {{#dpl:category=Pages with broken file links|notnamespace=User|notnamespace=Talk}}
&lt;style>
 
body{
==Toolkit==
margin:50px;
[https://golhobby.com/ Use these tools here]
}
*Pattern Manager (PatMan)
.lv-rle{
**Organize your patterns
font:12pt arial;
**View them in LifeViewer
resize:none;
*Pattern Lookup
width:594px;
**Look up a pattern by name and/or apgcode
min-height:120px;
**View it in Catagolue
max-height:120px;
**View it in LifeWiki
}
**View it in LifeViewer
&lt;/style>
**Get its RLE
&lt;/head>
*Tidy RLE
&lt;body>
**Replaces enhanced RLE characters with o's and b's
&lt;!--viewer container-->
**Removes trailing b's from rows
&lt;div class="viewer">
**Compresses repeating characters (e.g. 3ooo2o becomes 7o)
&lt;textarea class="lv-rle">bo$2bo$3o!&lt;/textarea>&lt;br/> &lt;!--added classname for styling-->
**Assures each line is ≤70 characters but as close to 70 as possible and does not end in a number
&lt;canvas height=400 width=600>&lt;/canvas> &lt;!--added with and height attributes for viewer-->
**Calculates bounding box
&lt;/div>
*IMG to RLE - get an RLE from a pattern image
&lt;!--end viewer container-->
*RLE to PNG - get a static png file from an RLE
&lt;/body>
*RLE to SVG - get a static svg file from an RLE
&lt;/html>
*RLE to Plaintext - convert an RLE to plaintext
</pre>
*Plaintext to 2RLE - convert plaintext to an RLE
**Also handles 1 and 0 as well as O and .
**Also handles Life 1.05 (* and .)
*Apgcode to PNG - get a static png file from an apgcode
*Apgcode to RLE - convert an apgcode to an RLE
*Integer to Life Digits RLE - convert an integer to a Life Digits RLE
*Frequency Class Calculator
*Frequency Calculator (from FC)

Latest revision as of 20:06, 17 February 2023

3o$o2bo12bo$3o3b3o2b3o2bobo$o2bo2bobo2bobo2b2o$3o3b3o2b3o2bobo! #C [[ THUMBSIZE 2 THEME 6 GRID GRIDMAJOR 0 SUPPRESS THUMBLAUNCH ]] #C [[ THUMBSIZE 2 ]]
Lifespan 4700
(click above to open LifeViewer)

xp0_book

Principles for Editing the Wiki

  • The wiki should be authoritative and substantive
  • The wiki should be welcoming to the uninitiated and casual user as well as the expert
  • Err on the side of explaining concepts and terminology
  • Err on the side of giving/showing examples
  • CGOL is visual: show stuff
  • Avoid dead links as much as possible (shed the red)
  • Upload missing pattern static images

Missing image report

Purge the cache of this page or consider doing a null edit

Toolkit

Use these tools here

  • Pattern Manager (PatMan)
    • Organize your patterns
    • View them in LifeViewer
  • Pattern Lookup
    • Look up a pattern by name and/or apgcode
    • View it in Catagolue
    • View it in LifeWiki
    • View it in LifeViewer
    • Get its RLE
  • Tidy RLE
    • Replaces enhanced RLE characters with o's and b's
    • Removes trailing b's from rows
    • Compresses repeating characters (e.g. 3ooo2o becomes 7o)
    • Assures each line is ≤70 characters but as close to 70 as possible and does not end in a number
    • Calculates bounding box
  • IMG to RLE - get an RLE from a pattern image
  • RLE to PNG - get a static png file from an RLE
  • RLE to SVG - get a static svg file from an RLE
  • RLE to Plaintext - convert an RLE to plaintext
  • Plaintext to 2RLE - convert plaintext to an RLE
    • Also handles 1 and 0 as well as O and .
    • Also handles Life 1.05 (* and .)
  • Apgcode to PNG - get a static png file from an apgcode
  • Apgcode to RLE - convert an apgcode to an RLE
  • Integer to Life Digits RLE - convert an integer to a Life Digits RLE
  • Frequency Class Calculator
  • Frequency Calculator (from FC)