Page 1 of 1

Reverse

Posted: October 7th, 2023, 11:47 am
by otismo
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 !

Re: Reverse

Posted: October 7th, 2023, 11:52 am
by unname4798
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:

Re: Reverse

Posted: October 7th, 2023, 12:08 pm
by otismo
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

Re: Reverse

Posted: October 7th, 2023, 12:20 pm
by dvgrn
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.