App-GUI-GoLP
view release on metacpan or search on metacpan
lib/App/GUI/GoLP.pm view on Meta::CPAN
package App::GUI::GoLP;
use 5.014;
use strict;
use warnings;
our $VERSION = "1.2";
1;
__END__
=head1 NAME
App::GUI::GoLP - A GUI for viewing and editing Life-like cellular automata, in Perl/Prima
=head1 VERSION
Version 1.2
=head1 SYNOPSIS
golp [<filename>]
=head1 DESCRIPTION
This program will load and run Life-like cellular automata from .rle or .cells files. A good source for files is L<https://conwaylife.com/wiki/Main_Page>. It uses L<Game::Life::Faster> for the engine and L<Prima> for the GUI.
=for HTML <p>
<img src="https://raw.githubusercontent.com/mjohnson108/p5-App-GUI-GoLP/main/example/POD/c5diagonalpuffer1.png" alt="" width="400" height="325">
<img src="https://raw.githubusercontent.com/mjohnson108/p5-App-GUI-GoLP/main/example/POD/owssagarstretcher.png" alt="" width="400" height="325">
</p>
=head2 Menus
=head3 File
The I<New> option allows the user to create a new board. Choose the width and height of the board and whether the initial cell status will be all 'dead', all 'live' or chosen at random according to a specified percentage chance. Use the I<Rules> subm...
The I<Open> option provides a dialog box allowing the user to select a .rle or .cells format file to be loaded.
The I<Save> option will save the current board in .rle or .cells format.
The I<Exit> option exits the program.
=head3 Options
I<Play/Pause> starts and pauses the simulation. This can also be done from the space bar.
I<Grid> toggles the cell grid on and off.
I<Autogrow> toggles the 'autogrow' on and off. When activated, the size of the board will be enlarged if there are live cells close to the edge of the board.
I<Status line> toggles the status text which can be displayed along the bottom of the main window. This gives some information as to the current state of the simulation.
I<Snapshot board> will create a .png image file of the board in the current working directory.
I<Loop delay> presents a list of presets which affects the speed of the simulation.
I<Rules> allows the user to select from a preset list of birth/survival rules, or use the I<Custom rule> dialog to specify one.
I<Zoom> opens the zoom dialog.
I<Live cell color> allows the user to select the color of a 'live' cell.
I<Dead cell color> allows the user to select the color of a 'dead' cell.
I<Grid color> allows the user to select the color of the grid.
I<Edit mode> can be used to switch in and out of 'edit mode'. When in edit mode clicking the left mouse button on the board will toggle the state of the cell under the cursor (indicated by a highlighted cell). Entering edit mode pauses the simulation...
=head3 About
Provides a small 'about' dialog.
=head2 Mouse interaction
The mouse wheel can be used to adjust the zoom setting (otherwise use the menu option). If the zoom is such that the board is clipped, the user can click and drag within the window to move the viewed section of the board. When not in edit mode, this ...
=head2 Keyboard commands
Pressing the space bar will play and pause the simulation.
When paused, the ']' key will step the simulation.
F1 enters 'Edit Mode'.
F5 takes a screenshot of the board.
=head1 SEE ALSO
L<Prima>
L<Game::Life::Faster>
=head1 AUTHOR
Matt Johnson, C<< <mjohnson at cpan.org> >>
( run in 1.084 second using v1.01-cache-2.11-cpan-39bf76dae61 )