BiblioPixelAnimations.matrix.GameOfLife module

class BiblioPixelAnimations.matrix.GameOfLife.GameOfLife(layout, toroidal=False, **kwds)[source]

Bases: bibliopixel.animation.matrix.Matrix

COLOR_DEFAULTS = (('bg', (0, 0, 0)), ('color', (255, 0, 0)))
pre_run()[source]
step(amt=1)[source]
stepTable()[source]
class BiblioPixelAnimations.matrix.GameOfLife.GameOfLifeClock(layout, font_name='16x8', mil_time=False, **kwds)[source]

Bases: bibliopixel.animation.matrix.Matrix

create_time_table(t)[source]
display_frame(frame)[source]
do_gen_next()[source]
gen_next()[source]
generate_history(t, steps)[source]
step(amt=1)[source]
swap_history()[source]
class BiblioPixelAnimations.matrix.GameOfLife.GameOfLifeRGB(layout, toroidal=True, **kwds)[source]

Bases: bibliopixel.animation.matrix.Matrix

doStableCheck(table)[source]
pre_run()[source]
step(amt=1)[source]
stepTables()[source]
class BiblioPixelAnimations.matrix.GameOfLife.Table(height, width, rand_max, table=None)[source]

Bases: object

checkStable()[source]
genNewTable()[source]
liveNeighbours(y, x)[source]

Returns the number of live neighbours.

turn()[source]

Turn