Experimenting with evolvotron. ;-)


From my album “Experimenting” on facebook. 😉
Based on: http://gnu.ethz.ch/debian/evolvotron/evolvotron-0.6.1/evolvotron.html

The reason for this post? It’s fun! 😆

# My "explorer" window after issuing the following 'command' (in a terminal of course!)
evolvotron -g 2 2 -f 24 -r 8 -j -a -m 2 -M
# and saving its output. ; - )
# -g = group 2 by 2 in this case
# -f = amount of frames
# -r = framerate
# -j = Enable sample jittering.
# -a = Enable 'auto cooling'
# -m = multisample (smoothing)
# -M = Hide the gui's menubar
# Therefore this will produce a 3 seconds animated picture.

Like this:

How?

#------------------------------
echo -n "Enter filename: "
read OUTPUT
OUTPUT=$OUTPUT
OUTPUT+=".gif"
# Ascend-Descend so the picture
# will move back and forth. ; - )
LS=$(echo "$(ls *.ppm | sort -n) $(ls *.ppm | sort -nr)")
convert $LS $OUTPUT
#------------------------------

The full script goes here:

#!/bin/bash
# Modified: Today by E.l.f
#
## This program is free software; you can redistribute it and/or modify it under
## the terms of the GNU General Public License as published by the Free Software
## Foundation; either version 2 of the License, or (at your option) any later
## version.
#
## This program is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
## FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
## details.
#
## You should have received a copy of the GNU General Public License along with
## this program; if not, write to the Free Software Foundation, Inc., 51
## Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
## http://www.gnu.org/copyleft/gpl.html
#
## Script-name - ppm2gif.sh
#
RED="\033[0;31m"
BLUE="\033[1;34m"
CYAN="\033[1;36m"
YELLOW="\033[1;33m"
NC="\033[0m"
if [ $USER = root ]; then
  echo -e $RED"Are you Insane!"
  echo -e $RED"Error: In order to use this script, one must NOT be $USER"
  echo -e $YELLOW"Exiting..."$NC
  exit 0
else
  echo ""
  echo "    $USER may proceed."  
  echo "    May peace be with you."  
fi
clear
echo -n "Enter filename: "
read OUTPUT
OUTPUT=$OUTPUT
OUTPUT+=".gif"
LS=$(echo "$(ls *.ppm | sort -n) $(ls *.ppm | sort -nr)")
convert $LS $OUTPUT
exit 0