CStichbury / nkos-rules

Python code to create all the rules from "New Kind of Science" by Stephen Wolfram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nkos-rules

Python code to create all the rules from "New Kind of Science" by Stephen Wolfram

Example

Dependencies

Python

  • NumPy 1.18.4

External (to batch create videos)

  • GNU parallel
  • ffmpeg

Usage

python rule.py <rule_number> <size_x> <size_y> <steps>

rule_number - number of rule
size_x, size_y - Canvas size
steps - How many steps to compute, must be < size_y

Alternatively, create all rules as webm videos with ffmpeg (Linux)

bash run_all.sh

About

Python code to create all the rules from "New Kind of Science" by Stephen Wolfram


Languages

Language:Python 83.1%Language:Shell 16.9%