module Genuary02

Overview

Description

Defined in:

genuary/02.cr

Constant Summary

CELL_BLEED = 0.4
CELL_SIZE = WINDOW_WIDTH / MAX_GENERATION_CELLS
DURATION = 5
ENABLE_ANIMATION = true
GENERATION_SIZE = 70_u32
MAX_GENERATION_CELLS = ((GENERATION_SIZE * 2) + 1)
OFF_COLOR = "white"
ON_COLOR = "black"
RULE = 30_u8
WINDOW_HEIGHT = 500
WINDOW_WIDTH = 500
X_OFFSET = -10
Y_OFFSET = 20

Class Method Summary

Class Method Detail

def self.evolve(generations : UInt32, rule : UInt8, start = true) #

[View source]
def self.get_original_position(g, i) #

[View source]
def self.get_square_position(g, i) #

[View source]