Pattern viewer for forum threads

For discussion directly related to ConwayLife.com, such as requesting changes to how the forums or home page function.
User avatar
dvgrn
Moderator
Posts: 10610
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Pattern viewer for forum threads

Post by dvgrn » February 17th, 2015, 3:39 am

Chris Rowett and Nathaniel Johnston have been working on adapting Chris' HTML5 LifeViewer to allow inline previews of quoted patterns in conwaylife.com forum messages. The current Build 129 is ready for general use. Post questions, comments, bug reports, and feature requests in this thread.

Here's a sample use of the viewer:

Code: Select all

#C p00485 gun, 31 January 2015
#C [[ THUMBNAIL AUTOSTART ZOOM 5 HEIGHT 480 LOOP 1940 ]]
x = 110, y = 57, rule = B3/S23
78bo$21b2o47bo5b3o$14b2o5b2o45b3o4bo$14b2o51bo7b2o$50b2o15b2o$50bo$16b
2o33bo$16b2o32b2o$10b2o69b2o$10b2o69b2o3$45bobo$37b2o5b2ob2o57b2o$36bo
2bo7bo58bo$35b2o2bo4b2o57b2obo$36b2o2bo3b2o5bo52bob2o$37b4o4bo3bobo52b
obo2bo$46bo56b2o3b2o$50bo51bo2bo$54b2o47b3o$7bo29b2o16bo$7b3o27bo14b3o
6bo41b2obob2o$10bo27b3o11bo7bobo40b2ob2obo$9b2o29bo20bo5b2o$32bo35bo7b
ob2o$31bobo31b3o6b3ob2o$31bobo31bo7bo$30b2ob3o38b3ob2o$36bo7bo31bobo$
30b2ob3o6b3o31bobo$30b2obo7bo35bo$41b2o5bo20bo29b2o$ob2ob2o40bobo7bo
11b3o27bo$2obob2o41bo6b3o14bo27b3o$54bo16b2o29bo$4b3o47b2o$4bo2bo51bo$
2o3b2o56bo$o2bobo52bobo3bo4b4o$2b2obo52bo5b2o3bo2b2o$3bob2o57b2o4bo2b
2o$3bo58bo7bo2bo$2b2o57b2ob2o5b2o$62bobo3$27b2o69b2o9bo$27b2o69b2o7bob
o$58b2o32b2o14b2o$58bo33b2o$59bo$41b2o15b2o$33b2o7bo51b2o$34bo4b3o45b
2o5b2o$31b3o5bo47b2o$31bo!
Just wrap RLE or other standard pattern formats in [ viewer]...[/viewer] tags instead of [ code]...[/code].

Click on the pattern image to get a full-sized viewer. Once you've clicked, you can control the viewer with the mouse or with keyboard shortcuts. Press 'H' for the help pages, which list the available options. Press 'C' to cycle through a set of predefined color themes, for example.

Script commands are also summarized in the Help pages. These can be added to the comments section of any pattern to change different attributes of the viewer. Here are the script commands used for the above pattern:

[[ THUMBNAIL AUTOSTART ZOOM 5 HEIGHT 480 LOOP 1940 ]]

With different settings the viewer can produce very different displays:

Code: Select all

#C [[ AUTOSTART STOP 500 ZOOM 3 THEME 2 DEPTH 2.5 LAYERS 5 ANGLE 135 GPS 30 ]]
#C soup producing a (known) p156 multi-glider shotgun,
#C found by Dongook Lee, 9 January 2015
#C http://www.conwaylife.com/forums/viewtopic.php?f=2&t=1452&start=200#p15913
x = 32, y = 32, rule = B3/S23
2o2bo2b3o7b3obobo2bo3b2o$2ob2o2b2o2b3o4b11ob2o$10bo2bo3b4o2b3o2bo$bob
4obobob3o2bobobob2ob5o$2ob3o4bo3bob2ob4o2b4obo$3b2ob2obo2b3ob3o2bo2bo
2b2ob2o$3bob2ob2obo8bo2b3obob2o$2o3bo2b2o3b3o9b2ob3o$2obo2b7o2b3ob5obo
2b4o$o4b4o2bob2obo2b2o2bo3bo2bo$2b3o3bobo3bobob2obobo2b3ob2o$bo4bob2ob
2o3bob3ob2obobob2o$bobobo2bo2bobo2bo3b4o3b5o$b3obobobo2b2o2bobob2o4bo
2b3o$3b3obob2o3b4o5bo2b4obo$7b2o5b10o2b2o$4b2o2b10o5b2o$ob4o2bo5b4o3b
2obob3o$3o2bo4b2obobo2b2o2bobobob3o$5o3b4o3bo2bobo2bo2bobobo$b2obobob
2ob3obo3b2ob2obo4bo$2ob3o2bobob2obobo3bobo3b3o$bo2bo3bo2b2o2bob2obo2b
4o4bo$4o2bob5ob3o2b7o2bob2o$b3ob2o9b3o3b2o2bo3b2o$b2obob3o2bo8bob2ob2o
bo$2ob2o2bo2bo2b3ob3o2bob2ob2o$bob4o2b4ob2obo3bo4b3ob2o$b5ob2obobobo2b
3obobob4obo$3bo2b3o2b4o3bo2bo$2ob11o4b3o2b2o2b2ob2o$2o3bo2bobob3o7b3o
2bo2b2o!

User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Re: Pattern viewer for forum threads

Post by Scorbie » February 18th, 2015, 10:57 am

Whoa, thanks for the fast and thorough explanation and thanks for using the soup I found! I was on my smartphone so I couldn't see the help window. Despite all that, I was able to control and understand most of it. Great app and tutorial. Is it possible to use it as some sort of library so that one could embed it in other web pages?

User avatar
dvgrn
Moderator
Posts: 10610
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Pattern viewer for forum threads

Post by dvgrn » February 18th, 2015, 12:26 pm

Scorbie wrote:Is it possible to use it as some sort of library so that one could embed it in other web pages?
I don't see why that wouldn't work. The main thing you need is the Javascript plugin file, lv-plugin.js, and that's pretty nicely packaged up already. One way to start would be to save some simple message thread as a standalone Web page and boil down the HTML to get a minimal template.

But very likely Chris can give better and more specific advice than that...!

User avatar
rowett
Moderator
Posts: 3776
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » February 20th, 2015, 5:23 am

dvgrn wrote:
Scorbie wrote:Is it possible to use it as some sort of library so that one could embed it in other web pages?
But very likely Chris can give better and more specific advice than that...!
Here are the instructions for embedding LifeViewer into a web page.
  • Include the LifeViewer Javascript plugin "lv-plugin.js". You will need to change the <script> tag to point to where you have installed it.
  • Create a <meta> tag with a name of "LifeViewer" in your webpage <head> section

    Code: Select all

    <html>
        <head>
            <meta name="LifeViewer" content="viewer textarea 30 hide limit">
            <script src="js/lv-plugin.js"></script>
            ...
        </head>
        ...
    </html>
  • The content part of the <meta> tag should contain a list of two mandatory words in a specific order and then up to three optional words in any order:
    • "viewer" - the class name of the <div> that wraps the element containing the pattern definition and the <canvas> element
    • "textarea" - the name of the element containing the pattern definition (in one of the supported pattern formats, typically RLE)
    • (optional) "30" - if specified then sets the height in pixels of the element containing the pattern definition
    • (optional) "hide" - if specified then hide the <canvas> element if the browser doesn't support LifeViewer
    • (optional) "limit" - if specified then limit the width of the LifeViewer to the width of the element containing the pattern
The example below shows how you embed LifeViewer in your page with the glider pattern. In this case without limiting the LifeViewer width to the <textarea>, without limiting the <textarea> height, but still hiding the LifeViewer if the browser doesn't support it (since we specified "hide").

Code: Select all

<html>
    <head>
        <meta name="LifeViewer" content="viewer textarea hide">
        <script src="js/lv-plugin.js"></script>
    </head>
    <body>
        <div class="viewer"><textarea>bo$2bo$3o!</textarea><br><canvas width="480" height="480"></canvas></div>
    </body>
</html>
If you omit the <meta> tag then it defaults to the conwaylife.com settings:

Code: Select all

<meta name="LifeViewer" content="rle code 37 hide limit">
You can put multiple LifeViewers on a single page. Each time you want one just specify an enclosing <div> containing both the <textarea> with the pattern and a <canvas>.

Code: Select all

<div class="viewer">
    <textarea>bo$2bo$3!</textarea>
    <canvas width="480" height="480"></canvas>
</div>

User avatar
Tezcatlipoca
Posts: 81
Joined: September 9th, 2014, 11:40 am

Re: Pattern viewer for forum threads

Post by Tezcatlipoca » February 24th, 2015, 11:32 pm

Just wanted to pipe in and say this is incredibly cool! Thank you all for your work on it! I can't wait to go play with it.

Also, is there an unobtrusive place on the forums that I should go to learn to use it and play around with it? Or is it ready for incorporation everywhere on the forums? I just haven't seen it in use yet in any of the threads I visit yet; I wouldn't want to disrupt or risk breaking anything or bogging anything down.

User avatar
dvgrn
Moderator
Posts: 10610
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Pattern viewer for forum threads

Post by dvgrn » February 25th, 2015, 12:44 am

Tezcatlipoca wrote:Just wanted to pipe in and say this is incredibly cool! Thank you all for your work on it! I can't wait to go play with it.
Don't get your hopes up too far, though. For multistate rules like the Shapeloop variants you've been working with recently, you can display images of the patterns you're posting, but you can't animate them. The viewer doesn't handle Golly's rule table format, so it can only actually simulate regular Bmmm/Snnn Life-like rules.

-- But I definitely agree: it's great to be able to see pattern previews, just to know if it's something you want to copy out and investigate further. A lot of times the viewer seems to be all I need, so it's nice that more people are starting to use it.

User avatar
Tezcatlipoca
Posts: 81
Joined: September 9th, 2014, 11:40 am

Re: Pattern viewer for forum threads

Post by Tezcatlipoca » February 25th, 2015, 1:41 am

dvgrn wrote:For multistate rules like the Shapeloop variants you've been working with recently, you can display images of the patterns you're posting, but you can't animate them.
Haha, yeah I'd be lying if I said I wasn't hoping I'd get the chance to push things even further with functioning Shapeloop variations in HTML5, but I wasn't betting on the Ruleloader rulesets to be implemented. The fact you can display an image will be incredibly helpful, though, getting a visual sense for things, comparing them visually. I was investigating just over the past days into different ways to take screens from Golly with less user input, effort and trouble to use myself, so this is still a big deal to even me with my currently narrow interest.

So we are good to go ahead and post with this all over the forums then?

User avatar
rowett
Moderator
Posts: 3776
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » February 25th, 2015, 2:23 am

Tezcatlipoca wrote:So we are good to go ahead and post with this all over the forums then?
Yes, please do!

User avatar
Gustavo6046
Posts: 647
Joined: December 7th, 2013, 6:26 pm
Location: Brazil.

Re: Pattern viewer for forum threads

Post by Gustavo6046 » March 9th, 2015, 2:11 pm

I wish we could draw cells, control the generations, and it had a grid, so it could normally function like a replacement for the old, deprecated Java applet. And the best: It would be soo simple to do that adaptation and to use it! Love it so much! XD Now school delay things a little, but still can be safely one enthusiast.
*yawn* What a nothing-to-do day! Let's be the only person in the world to do CGOL during boring times. :)

User avatar
Gustavo6046
Posts: 647
Joined: December 7th, 2013, 6:26 pm
Location: Brazil.

Re: Pattern viewer for forum threads

Post by Gustavo6046 » March 9th, 2015, 7:45 pm

Don't forget to leave a answer. Real life sounds pretty weird!
*yawn* What a nothing-to-do day! Let's be the only person in the world to do CGOL during boring times. :)

User avatar
gameoflifeboy
Posts: 474
Joined: January 15th, 2015, 2:08 am

Re: Pattern viewer for forum threads

Post by gameoflifeboy » March 9th, 2015, 9:16 pm

I think that the pattern viewer should definitely have a step size feature, like

Code: Select all

#C [[ STEP n ]]
where n is the number of generations to skip. Without it, many patterns run too slowly even at sixty GPS.

User avatar
Gustavo6046
Posts: 647
Joined: December 7th, 2013, 6:26 pm
Location: Brazil.

Re: Pattern viewer for forum threads

Post by Gustavo6046 » March 10th, 2015, 1:55 pm

gameoflifeboy wrote:I think that the pattern viewer should definitely have a step size feature, like

Code: Select all

#C [[ STEP n ]]
where n is the number of generations to skip. Without it, many patterns run too slowly even at sixty GPS.
Yeah, good idea. Also one bigger supported amount of GPS would be preferred. Weld this to my latest idea(s) of improvement and we get the perfect "mini-Golly"! Wait, this time don't put a Kok galaxy in the logo, put a Doppler star instead! :lol:
*yawn* What a nothing-to-do day! Let's be the only person in the world to do CGOL during boring times. :)

wildmyron
Posts: 1542
Joined: August 9th, 2013, 12:45 am
Location: Western Australia

Re: Pattern viewer for forum threads

Post by wildmyron » March 11th, 2015, 3:06 am

Thank you to all involved for integrating the HTML5 rle viewer.

I have a request related to performance on older hardware for situations where many viewers are present in one thread page. Is it possible to have a user profile setting to disable the AUTOSTART feature? Currently I find myself going through a thread and pausing the patterns I'm not interested in so that the one I am interested in will run at a reasonable speed.

Similarly or alternatively the ability to have THUMBNAIL be a default would help performance as full size viewers seem to run much slower.
The 5S project (Smallest Spaceships Supporting Specific Speeds) is now maintained by AforAmpere. The latest collection is hosted on GitHub and contains well over 1,000,000 spaceships.

Semi-active here - recovering from a severe case of LWTDS.

User avatar
rowett
Moderator
Posts: 3776
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » March 13th, 2015, 3:06 am

Gustavo6046 wrote:I wish we could draw cells
Noted.
Gustavo6046 wrote:... control the generations
In what way?
Gustavo6046 wrote:... and it had a grid
It does. Use hotkey "X" to switch the grid on and off, and the [[ GRID ]] script command to have it initially on.

Code: Select all

#C [[ GRID ]]
x = 22, y = 7, rule = b3/s23
9bo12b$7bobo12b$6bobo13b$2o3bo2bo11b2o$2o4bobo11b2o$7bobo12b$9bo!
Many thanks for your suggestions,
Chris

User avatar
rowett
Moderator
Posts: 3776
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » March 13th, 2015, 3:53 am

wildmyron wrote:Thank you to all involved for integrating the HTML5 rle viewer.

I have a request related to performance on older hardware for situations where many viewers are present in one thread page. Is it possible to have a user profile setting to disable the AUTOSTART feature? Currently I find myself going through a thread and pausing the patterns I'm not interested in so that the one I am interested in will run at a reasonable speed.

Similarly or alternatively the ability to have THUMBNAIL be a default would help performance as full size viewers seem to run much slower.
I'll work with Nathaniel to see if it's possible to integrate the Viewer with settings on the forum. If not I could probably have the Viewer manage its own preferences.
In the next build (not yet published) I've added hotkey "Z" which will pause all other Viewers.

User avatar
rowett
Moderator
Posts: 3776
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » March 14th, 2015, 8:52 am

gameoflifeboy wrote:I think that the pattern viewer should definitely have a step size feature, like

Code: Select all

#C [[ STEP n ]]
where n is the number of generations to skip. Without it, many patterns run too slowly even at sixty GPS.
This could certainly be added. Please could you help me understand specific use cases where this would be helpful. For example: Would you want to run a pattern at STEP=10 for a number of generations and then return to STEP=1?

And just so I've stated it: LifeViewer is not Golly :D

User avatar
Gustavo6046
Posts: 647
Joined: December 7th, 2013, 6:26 pm
Location: Brazil.

Re: Pattern viewer for forum threads

Post by Gustavo6046 » March 14th, 2015, 9:47 am

rowett wrote:
Gustavo6046 wrote:I wish we could draw cells
Noted.
edit the pattern in the viewer...
Gustavo6046 wrote:... control the generations
In what way?
The ability to rewind and get faster.
Gustavo6046 wrote:... and it had a grid
It does. Use hotkey "X" to switch the grid on and off, and the [[ GRID ]] script command to have it initially on.

Code: Select all

#C [[ GRID ]]
x = 22, y = 7, rule = b3/s23
9bo12b$7bobo12b$6bobo13b$2o3bo2bo11b2o$2o4bobo11b2o$7bobo12b$9bo!
nice!
Many thanks for your suggestions,
Chris
You're welcome, it is only my daily work. ;)
rowett wrote:And just so I've stated it: LifeViewer is not Golly :D
:(
*yawn* What a nothing-to-do day! Let's be the only person in the world to do CGOL during boring times. :)

User avatar
rowett
Moderator
Posts: 3776
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » March 14th, 2015, 10:45 am

Gustavo6046 wrote:The ability to rewind and get faster.
Some of that exists already. The controls at the bottom of the Viewer do as follows (from left to right):

Image
  • Gen - click to toggle display of rule, elapsed time, population, births and deaths (hotkey "G")
  • 20gps - slide to set playback speed (hotkeys "-" and "+")
  • Reset - reset to generation 0, if already reset then also reset camera (hotkey "R")
  • Pause - pause playback if playing, otherwise step to next generation (hotkey SPACE)
  • Play - start or continue playback (hotkey ENTER)
  • Menu - toggle display of the navigation menu to control the camera (hotkey "M")
There are many other controls that are documented in the built-in help which can be viewed with hotkey "H".

User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Re: Pattern viewer for forum threads

Post by Scorbie » March 14th, 2015, 11:13 am

Just a minor thing. I'm kinda confused by the arrow keys since LifeViewer's movement is the opposite of golly's. Is it possible to change them?

Also, how could I get lv-plugin.js? (Just curious)

Oh and real thanks to your work :D

User avatar
gameoflifeboy
Posts: 474
Joined: January 15th, 2015, 2:08 am

Re: Pattern viewer for forum threads

Post by gameoflifeboy » March 14th, 2015, 1:19 pm

rowett wrote:
gameoflifeboy wrote:I think that the pattern viewer should definitely have a step size feature, like

Code: Select all

#C [[ STEP n ]]
where n is the number of generations to skip. Without it, many patterns run too slowly even at sixty GPS.
This could certainly be added. Please could you help me understand specific use cases where this would be helpful. For example: Would you want to run a pattern at STEP=10 for a number of generations and then return to STEP=1?

And just so I've stated it: LifeViewer is not Golly :D
I knew we'd never get to all the features of golly, but I realized that many patterns, especially soups from the "Soup Search Results" thread took thousands of generations to stabilize, such as this one, which takes 30 seconds at 60 GPS.

User avatar
rowett
Moderator
Posts: 3776
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » March 14th, 2015, 2:50 pm

Scorbie wrote:Just a minor thing. I'm kinda confused by the arrow keys since LifeViewer's movement is the opposite of golly's. Is it possible to change them?
Yes, I hadn't realised it was different than Golly. I'll change it in the next build.
Scorbie wrote:Also, how could I get lv-plugin.js? (Just curious)
Just copy it from the forum:
styles/prosilver/template/lv-plugin.js

Also see this post for how to use on your own site:
viewtopic.php?f=3&t=1622#p17014
Scorbie wrote:Oh and real thanks to your work :D
My pleasure.

User avatar
rowett
Moderator
Posts: 3776
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » March 14th, 2015, 2:54 pm

gameoflifeboy wrote:I knew we'd never get to all the features of golly, but I realized that many patterns, especially soups from the "Soup Search Results" thread took thousands of generations to stabilize, such as this one, which takes 30 seconds at 60 GPS.
OK it will be in the next build.

User avatar
rowett
Moderator
Posts: 3776
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » March 21st, 2015, 2:38 pm

Build 144 is now live on conwaylife.com

Enhancements since the last released build:
  • code blocks that contain a valid pattern will now have a "Show in Viewer" link next to the "Select All" link that will launch a standalone moveable LifeViewer
  • added hotkey "Z" to stop playback in all other LifeViewers
    • help information now shows number of LifeViewers currently playing
  • inverted cursor keys to align with Golly
  • added script command [[ STEP 1..20 ]] that defines generations per step
    • gps slider controls steps per second
    • display is only updated at the end of each step
  • added the ability to define a set of waypoints for the camera to follow
    • [[ T {generation} ]] defines a waypoint at the specified generation
    • [[ PAUSE {seconds} ]] pauses creating new generations for the specified number of seconds
    • both commands can be followed by camera setting commands:
      • [[ X ]] to set the target camera X position
      • [[ Y ]] to set the target camera Y position
      • [[ ZOOM ]] to set the target camera zoom
      • [[ ANGLE ]] to set the target camera angle
      • [[ LAYERS ]] to set the target number of layers
      • [[ DEPTH ]] to set the target layer depth
      • [[ GPS ]] to set the generations per second
      • [[ THEME ]] to set the theme
    • text in double quotes displays the text for the duration of the waypoint [[ "This is a message" ]]
    • hotkey "W" will toggle waypoint playback
    • hotkey "Esc" will pause playback and if already paused will disable waypoint playback
    • reset will disable waypoint playback (if available)
      • reset again at T=0 will re-enable
    • playback continues after the last defined waypoint at the current gps
    • pan, zoom, angle, layer, depth, theme and gps controls are locked (greyed out) during waypoint playback
      • controls are unlocked after the final waypoint
      • controls are temporarily unlocked when waypoint playback paused
      • if you move the camera while waypoint playback is paused or disabled then it will glide to the correct waypoint position when playback resumes
      • added waypoint details to the help information
        • whether waypoint playback enabled
        • number of waypoints
        • waypoint definitions with the current waypoint marked
  • added loop details to the help information
    • whether loop is enabled
    • loop generation
  • added a notification if grid lines switched on or off when the grid lines can't be displayed
Fixes since the last released build:
  • menus work correctly when Canvas is contained in a fixed position element
  • added missing LifeHistory state colour
  • LifeHistory patterns now center correctly when in VIEWONLY mode
  • corrected extended RLE format states > 24
  • re-enabled scrolling the error list
Here is a standard code block with the new "Show in Viewer" link. Note you can drag the window by its title and close it by clicking the red X.

Code: Select all

#N Bottle
#O Achim Flammenkamp
#C A period 8 oscillator.
#C www.conwaylife.com/wiki/index.php?title=Bottle
x = 18, y = 18, rule = B3/S23
4b2o6b2o4b$3bo2bo4bo2bo3b$3bobo6bobo3b$b2o2b3o2b3o2b2ob$o6bo2bo6bo$ob
2o10b2obo$bobo10bobob$3b2o8b2o3b3$3b2o8b2o3b$bobo10bobob$ob2o10b2obo$o
6bo2bo6bo$b2o2b3o2b3o2b2ob$3bobo6bobo3b$3bo2bo4bo2bo3b$4b2o6b2o!
Here is a sample pattern using the waypoint system (thanks to dvgrn):

Code: Select all

#C sample attempt to follow a glider around in the p59 gun
#C [[ GPS 60 THEME 2 LAYERS 2 DEPTH 0.4 T 0 X -48 Y 58 ZOOM 12
#C PAUSE 1 "3..."
#C PAUSE 1 "2..."
#C PAUSE 1 "1..."
#C PAUSE 1 "Go!"
#C T 140 X -80 Y 94 ZOOM 20
#C T 310 X -120 Y 52 ZOOM 16 ANGLE 45
#C T 360 X -130 Y 65 ZOOM 10 ANGLE 90
#C PAUSE 2 "Dramatic pause"
#C T 480 THEME 3 DEPTH 5 LAYERS 6 GPS 15 X -110 Y 95 ANGLE 0 ZOOM 15 "Slow motion"
#C T 610 THEME 1 DEPTH 0.4 GPS 30 X -75 Y 50 ANGLE 10
#C T 675 THEME 4 GPS 60 LAYERS 2 X -106 Y 50 ZOOM 10 ANGLE 350
#C T 858 X -140 Y 0 ZOOM 8 ANGLE 10
#C PAUSE 5 X 0 Y 5 ZOOM 1.5 DEPTH 0 ANGLE 0 "Show me the world..."
#C PAUSE 0.1 THEME 5 "That's all folks!"
#C LOOP 1300 ]]
x = 299, y = 239, rule = B3/S23
118b2o3b2o$118b2o2bob3o$122bo4bo$118b4ob2o2bo$118bo2bobobob2o$121bobob
obo$122b2obobo$126bo2$112b2o$113bo7b2o$113bobo$114b2o$121b2o$121b2obo
98b2o3b2o26b2o3b2o$122b2o99b2o2bob3o22b3obo2b2o$123bo103bo4bo20bo4bo$
223b4ob2o2bo20bo2b2ob4o$223bo2bobobob2o18b2obobobo2bo$124b2o100bobobob
o20bobobobo$124bo102b2obobo20bobob2o$125b3o103bo22bo$127bo$136bobo78b
2o48b2o$137b2o79bo7b2o29b3o7bo$126b2o3b2o4bo80bobo5b2o28bo3bo4bobo$
124b3obo2b2o86b2o34bo5bo3b2o$108b2o13bo4bo125bo3bo3bo$109b2o12bo2b2ob
4o121bo2bobo2bo$108bo13b2obobobo2bo92b2o27bo3bo3bo$123bobobobo94bobo
28bo5bo$123bobob2o97bo33bo$124bo130bo3bo$229b2o24bo$137b2o90bo8bobo15b
o$128bo8bo92b3o6b2o12b3o$127b3o5bobo94bo6bo13bo$126b5o4b2o15bo$125b2o
3b2o21bo115bo$124b3o3b3o18b3o87bo26b2o$125b2o3b2o107b2o27bobo$126b5o
109b2o$93b3o31b3o$95bo30b3o$94bo30b2o83b2o$126bo54bo29b2o$123b3o55b3o
26bo$123bo60bo$183b2o69bo$153bo16b2o48b2o33bo$110bo27b3o12b3o14b2o48b
2o31b3o34bo$110bobo25bo17bo115b2o14b5o$110b2o27bo15b2o9bo103bo2bo13bo
5bo$167b2o101b2obobo4bo7b3o2bo$92bo67b3o3b2o12b3o26b3o13bo46bob2o3bobo
9bob2o$92b3o64bo4bo13bo4bo24bo4bo11bobo44bo5bo3bo5b4o2bo$79bo15bo129b
2o7b2o34b3o5bo3bo5bo3b2o$79b2o13b2o59bobo2bo3bo13bo3bo2bobo16bobo2bo3b
o20bo34bo8bo3bo6b3o$78bobo74bobo3b3o6b3o6b3o3bobo16bobo3b3o6b3o10bobo
34b2o8bobo9bo$154bo15b3o15bo14bo15b3o10b2o46bo10bob2o$86b2o66b2o15bo
15b2o14b2o15bo69b2ob2o$86bo67b3o14bo14b3o14b3o14bo15b2o7bo21b2o$83b2ob
o68b2o14bo14b2o16b2o14bo15b2o5b3o20bo2bo$83bo2b3o7bobo53b2ob2o13bobo
15bo14bo15bobo20bo39b2o$84b2o3bo6bo2bo53bobo81bo4b2o22b3o13bo$86b4o6bo
2bo48b2o4bo81bobo20b2o22b3o$86bo11bo3b2o45bo20bobo15bo14bo15bobo13b2ob
2o18bobo24bo$87b3o12bobo41b3o5b2o15bo14b2o16b2o14bo14b2o21bo$90bo13bo
41bo7b2o15bo14b3o14b3o14bo14b3o19b2o$85b5o14b2o65bo15b2o14b2o15bo15b2o
$84bo73b2o10b3o15bo14bo15b3o15bo33bo$64b2o17bo2b2o69bobo10b3o6b3o3bobo
16bobo3b3o6b3o6b3o3bobo30b2obobo$63bobo16bob2obo69bo20bo3bo2bobo16bobo
2bo3bo13bo3bo2bobo29bobobobo$65bo10b2o4bo73b2o7b2o96bo2bobobob2o$74bo
2bo2b2ob4o77bobo11bo4bo24bo4bo13bo4bo30b4ob2o2bo$74b2obobobobo2bo79bo
13b3o26b3o12b2o3b3o35bo4bo$77bobobobo139b2o38b2o2bob3o$77bobob2o37bo
104bo9b2o15bo10b2o3b2o$78bo28bo10b3o114bo17bo$108bo8bo52b2o19b2o27b2o
14b3o12b3o$91b2o13b3o8b2o51b2o18bobo27b2o16bo$82b2o7bo100bo$82b2o5bobo
$89b2o34b2ob2o51bo28bo$126bob2o49b2o30b2o$126bo53b2o28b2o$49b2o67b2o4b
3o$50b2o66b2o3bo3b2o70b2o3b2o$49bo22bo13bo36b4o2bo20b2o45b3obo2b2o$71b
o13b2o22b2o15bob2o21b2o43bo4bo$71b3o5b2o4bobo20bobo12b3o2bo21bo45bo2b
2ob4o32b3o$80bo27bo13bo5bo66b2obobobo2bo32bo$77b3o27b2o6bo7b5o68bobobo
bo36bo26bo$77bo35b2o10bo70bobob2o65b2o$114b2o60b2o19bo68b2o$100bo76b2o
$100b3o73bo33b2o$103bo97b2o7bo28bo$102b2o61bo35b2o5bobo15bo10b3o$165bo
bo40b2o14bobo9bo$105bo59b2o58b2o9b2o51bo$34b3o67bo2bo179b3o$36bo71bo
177bo$35bo22bo9b2o3b2o24b2o4bo29b3o106b2o40b2o$56b2o10b2o2bob3o23bo4bo
3bo27bo53bo53bo8bo$57b2o13bo4bo22bo2bo5bo2b2o22bo54bobo11b2o31bo6bob2o
4b2o$68b4ob2o2bo24b2o8bobo76b2o5b2o4b2o31bo6b2o2bo4bobo38b2ob2o$68bo2b
o3bob2o24bobobo6bo84bo6bo30b2o3b2o2b2o34bo12bob2o$71bobobobo26b3o7b2o
80b3o43b2obo34bobo12bo$72b2obobo83b3o32bo31b2o15bo35b2o4b2o4b3o$76bo
24bo3bo57bo63bobo12b3o24bo17b2o3bo3b2o$100bob2obo56bo64bo13bo9b2o14b5o
20b4o2bo$34bo27b2o36bobo3b2o118b2o5bobo6b5o5bo13bo5bo5b2o15bob2o$34b3o
26bo8bo26b2obobobo2bo40bobo68bo11b2o11bo5bobo12b3o2bo4bobo12b3o2bo$37b
o25bobo5b2o27bo2b2ob4o40b2o69b3o10bo9bo8b2o15bob2o3bo13bo5bo$20bo15b2o
26b2o34bo4bo45bo72bo19b2o21b4o2bo2b2o14b5o$20b2o56bo22b3obo2b2o113b2o
37b2o3bo3b2o21bo$19bobo57bo23b2o3b2o11bo140b2o4b3o$25b2ob2o12bo34b3o
41b2o132b2o13bo$25b2obo13bobo75bobo53bobo75bobo13bob2o$28bo13b2o132b2o
41b3o34bo12b2ob2o$28b3o4b2o140bo11b2o3b2o23bo57bobo$4bo21b2o3bo3b2o37b
2o113b2o2bob3o22bo56b2o$2b5o14b2o2bo2b4o21b2o19bo72bo45bo4bo34b2o26b2o
15bo$bo5bo13bo3b2obo15b2o8bo9bo10b3o69b2o40b4ob2o2bo27b2o5bobo25bo$bo
2b3o12bobo4bo2b3o12bobo5bo11b2o11bo68bobo40bo2bobobob2o26bo8bo26b3o$2o
bo15b2o5bo5bo13bo5b5o6bobo5b2o118b2o3bobo36b2o27bo$o2b4o20b5o14b2o9bo
13bo64bo56bob2obo$b2o3bo3b2o17bo24b3o12bobo63bo57bo3bo24bo$3b3o4b2o4b
2o35bo15b2o31bo32b3o83bobob2o$3bo12bobo34bob2o43b3o80b2o7b3o26bobobobo
$2obo12bo34b2o2b2o3b2o30bo6bo84bo6bobobo24b2obo3bo2bo$2ob2o38bobo4bo2b
2o6bo31b2o4b2o5b2o76bobo8b2o24bo2b2ob4o$44b2o4b2obo6bo31b2o11bobo54bo
22b2o2bo5bo2bo22bo4bo13b2o$44bo8bo53bo53bo27bo3bo4bo23b3obo2b2o10b2o$
11b2o40b2o106b3o29bo4b2o24b2o3b2o9bo22bo$12bo177bo71bo$9b3o179bo2bo67b
3o$9bo51b2o9b2o58b2o59bo$62bo9bobo14b2o40bobo$59b3o10bo15bobo5b2o35bo
61b2o$59bo28bo7b2o97bo$87b2o33bo73b3o$120b2o76bo$31b2o68bo19b2o60b2o$
30b2o65b2obobo70bo10b2o35bo$32bo26bo36bobobobo68b5o7bo6b2o27b3o$60bo
32bo2bobobob2o66bo5bo13bo27bo$58b3o32b4ob2o2bo45bo21bo2b3o12bobo20bobo
4b2o5b3o$97bo4bo43b2o21b2obo15b2o22b2o13bo$93b2o2bob3o45b2o20bo2b4o36b
o13bo22bo$93b2o3b2o70b2o3bo3b2o66b2o$172b3o4b2o67b2o$87b2o28b2o53bo$
86b2o30b2o49b2obo$88bo28bo51b2ob2o34b2o$207bobo5b2o$106bo100bo7b2o$60b
o16b2o27bobo18b2o51b2o8b3o13b2o$45b3o12b3o14b2o27b2o19b2o52bo8bo$45bo
17bo114b3o10bo28bo$29b2o3b2o10bo15b2o9bo104bo37b2obobo$27b3obo2b2o38b
2o139bobobobo$26bo4bo35b3o3b2o12b3o26b3o13bo79bo2bobobobob2o$26bo2b2ob
4o30bo4bo13bo4bo24bo4bo11bobo77b4ob2o2bo2bo$25b2obobobo2bo96b2o7b2o73b
o4b2o10bo$26bobobobo29bobo2bo3bo13bo3bo2bobo16bobo2bo3bo20bo69bob2obo
16bobo$26bobob2o30bobo3b3o6b3o6b3o3bobo16bobo3b3o6b3o10bobo69b2o2bo17b
2o$27bo33bo15b3o15bo14bo15b3o10b2o73bo$61b2o15bo15b2o14b2o15bo65b2o14b
5o$40b2o19b3o14bo14b3o14b3o14bo15b2o7bo41bo13bo$40bo21b2o14bo14b2o16b
2o14bo15b2o5b3o41bobo12b3o$13bo24bobo18b2ob2o13bobo15bo14bo15bobo20bo
45b2o3bo11bo$13b3o22b2o20bobo81bo4b2o48bo2bo6b4o$16bo13b3o22b2o4bo81bo
bo53bo2bo6bo3b2o$15b2o39bo20bobo15bo14bo15bobo13b2ob2o53bobo7b3o2bo$
29bo2bo20b3o5b2o15bo14b2o16b2o14bo14b2o68bob2o$30b2o21bo7b2o15bo14b3o
14b3o14bo14b3o67bo$4b2ob2o69bo15b2o14b2o15bo15b2o66b2o$4b2obo10bo46b2o
10b3o15bo14bo15b3o15bo$7bo9bobo8b2o34bobo10b3o6b3o3bobo16bobo3b3o6b3o
6b3o3bobo74bobo$7b3o6bo3bo8bo34bo20bo3bo2bobo16bobo2bo3bo13bo3bo2bobo
59b2o13b2o$5b2o3bo5bo3bo5b3o34b2o7b2o129bo15bo$4bo2b4o5bo3bo5bo44bobo
11bo4bo24bo4bo13bo4bo64b3o$4b2obo9bobo3b2obo46bo13b3o26b3o12b2o3b3o67b
o$5bo2b3o7bo4bobob2o101b2o$5bo5bo13bo2bo103bo9b2o15bo27b2o$6b5o14b2o
115bo17bo25bobo$8bo34b3o31b2o48b2o14b3o12b3o27bo$43bo33b2o48b2o16bo$
44bo$175bo$88bo28bo55b3o$72bo13b2o30b2o52bo$72b3o12b2o28b2o53b2o30bo$
75bo94b3o30bo$74b2o93b3o31b3o$57b2o109b5o$28bobo27b2o107b2o3b2o$29b2o
26bo87b3o18b3o3b3o$29bo115bo21b2o3b2o$146bo15b2o4b5o$45bo13bo6bo94bobo
5b3o$43b3o12b2o6b3o92bo8bo$42bo15bobo8bo90b2o$43bo24b2o$39bo3bo130bo$
38bo33bo60bo36b2obobo$37bo5bo28bobo56bobo35bobobobo$36bo3bo3bo27b2o58b
2o32bo2bobobob2o13bo$36bo2bobo2bo121b4ob2o2bo12b2o$36bo3bo3bo125bo4bo
13b2o$32b2o3bo5bo34b2o86b2o2bob3o$31bobo4bo3bo28b2o5bobo80bo4b2o3b2o$
31bo7b3o29b2o7bo79b2o$30b2o48b2o78bobo$171bo$44bo22bo103b3o$40b2obobo
20bobob2o102bo$39bobobobo20bobobobo100b2o$36bo2bobobob2o18b2obobobo2bo
$36b4ob2o2bo20bo2b2ob4o$40bo4bo20bo4bo74bobo26bo$36b2o2bob3o22b3obo2b
2o71b2o26b2o$36b2o3b2o26b2o3b2o71bo26bob2o$176b2o$183b2o$183bobo$176b
2o7bo$185b2o2$172bo$171bobob2o$171bobobobo$170b2obobobo2bo$171bo2b2ob
4o$162bo8bo4bo$163bo8b3obo2b2o$161b3o10b2o3b2o
Here is a pattern using the new STEP command to quickly get to the required generation:

Code: Select all

#C [[ THEME 0 GPS 60 STEP 20 X -10 Y 42 ZOOM 4 GRID STOP 1521 ]]
x = 16, y = 16, rule = B3/S23
5obob5o2bo$obo3b3ob2o$b2obobo3b4o$bo2bob2o5bobo$3b2ob4o2b2o$3b3o2bobo$
2obo2b2ob2o4bo$b2o2b2o3b2o3bo$7bob2ob4o$obo2bobo2bo2bobo$3o4b3obob3o$
2b3o2b2ob2o$2b2obo2b3o2bobo$bobo6b5o$b2ob2o2bo3bo2bo$bob4ob2obob2o!
Feedback, comments and suggestions always welcome.

User avatar
gameoflifeboy
Posts: 474
Joined: January 15th, 2015, 2:08 am

Re: Pattern viewer for forum threads

Post by gameoflifeboy » March 22nd, 2015, 12:47 am

Thanks for using my "racetrack and ortho-beacon" soup to demonstrate your update!

Very nice additions. When I first saw LifeViewer in 2013, I had hopes for it -- and now those are coming true!

bprentice
Posts: 920
Joined: September 10th, 2009, 6:20 pm
Location: Coos Bay, Oregon

Re: Pattern viewer for forum threads

Post by bprentice » March 30th, 2015, 7:07 pm

Why have my posts to this forum been changed by adding 'SHOW IN VIEWER' to the pattern examples? This option provides no useful information and is confusing when the states are colored incorrectly. The decision to display a pattern should be made by the post's author and not automatically provided by the website code.

Brian Prentice

Post Reply