Reverse

For scripts to aid with computation or simulation in cellular automata.
Post Reply
User avatar
otismo
Posts: 1220
Joined: August 18th, 2010, 1:41 pm
Location: Florida
Contact:

Reverse

Post by otismo » October 7th, 2023, 11:47 am

There must be a simple script to reverse time that I am unaware of.

So I don't have to keep clicking on "UnDo"

or "Control Z".

( I like to observe the Reverse Morphology of Patterns. )

Thank You !
"One picture is worth 1000 words; but one thousand words, carefully crafted, can paint an infinite number of pictures."
- autonomic writing
forFUN : http://viropet.com
Art Gallery : http://cgol.art
Video WebSite : http://conway.life

User avatar
unname4798
Posts: 467
Joined: July 15th, 2023, 10:27 am

Re: Reverse

Post by unname4798 » October 7th, 2023, 11:52 am

otismo wrote:
October 7th, 2023, 11:47 am
There must be a simple script to reverse time that I am unaware of.

So I don't have to keep clicking on "UnDo"

or "Control Z".

( I like to observe the Reverse Morphology of Patterns. )

Thank You !
Reverse a text and a list:

Code: Select all

>reverse "text here"
ereh txet
>reverselist {0,1,2,3,4,5,6,7}
{7,6,5,4,3,2,1,0}
Golly version:

User avatar
otismo
Posts: 1220
Joined: August 18th, 2010, 1:41 pm
Location: Florida
Contact:

Re: Reverse

Post by otismo » October 7th, 2023, 12:08 pm

unname4798 wrote:
October 7th, 2023, 11:52 am
otismo wrote:
October 7th, 2023, 11:47 am
There must be a simple script to reverse time that I am unaware of.

So I don't have to keep clicking on "UnDo"

or "Control Z".

( I like to observe the Reverse Morphology of Patterns. )

Thank You !
Reverse a text and a list:

Code: Select all

>reverse "text here"
ereh txet
>reverselist {0,1,2,3,4,5,6,7}
{7,6,5,4,3,2,1,0}
Golly version:
thanx
"One picture is worth 1000 words; but one thousand words, carefully crafted, can paint an infinite number of pictures."
- autonomic writing
forFUN : http://viropet.com
Art Gallery : http://cgol.art
Video WebSite : http://conway.life

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

Re: Reverse

Post by dvgrn » October 7th, 2023, 12:20 pm

otismo wrote:
October 7th, 2023, 11:47 am
There must be a simple script to reverse time that I am unaware of.

So I don't have to keep clicking on "UnDo"

or "Control Z".

( I like to observe the Reverse Morphology of Patterns. )

Thank You !
This has come up before. The little-known "timeline" functionality of Golly is highly recommended here -- no need for a Golly script.

View > Show Timeline, set some appropriate step size, then hit the Record button and let that run for a while, and see what the replay looks like.

You can run the pattern forward and reverse at whatever speed you choose, for as long as you want, very quickly and without over-using the undo system.

EDiT: There are some limitations with the native timeline system, like its tendency to switch automatically into "reverse" mode when it reaches the end of its "forward" cycle and vice versa, whether you want it to or not. GUYTU6J reminded me that Andrew Trevorrow also wrote a Lua script to implement timelines, about a year ago.

Post Reply