Site icon Bytefreaks.net

game-of-life-torus-cumulative

Advertisements

Following is the gnuplot code used to create the slides for this animation
set terminal pngcairo transparent enhanced font “arial,10” fontscale 1.0 size 700, 400

unset key
unset border
unset tics

set dummy u, v

circles=60
rings=30

set parametric
set isosamples circles, rings
set hidden3d back offset 1 trianglepattern 3 undefined 1 altdiagonal bentover
set urange [ -pi : pi ] noreverse nowriteback
set vrange [ -pi : pi ] noreverse nowriteback

do for [i=1:360/circles] {
set view 25, i, 1, 1
set output sprintf(‘game-of-life-torus.%03.0f.png’, i)
splot cos(u)+.5*cos(u)*cos(v),sin(u)+.5*sin(u)*cos(v),.5*sin(v) with lines
}

Exit mobile version