Repotomata.jl

Generates a cellular automata animation of the given GitHub repository.
Author Nauss
Popularity
6 Stars
Updated Last
3 Years Ago
Started In
November 2020

Repotomata.jl

Ethical Open Source Documentation Status Build Status

Create an animated gif from a GitHub repository using cellular automata.

Usage

images = repotomata("JuliaLang/Julia")
repotomata("JuliaLang/Julia", output=Repotomata.viewer)
repotomata("JuliaLang/Julia", output=Repotomata.gif, output_path="test.gif")

Read the documentation for more information.

Examples

Julia

repotomata("JuliaLang/Julia", output=Repotomata.gif, output_path="julia.gif")

julia.gif example

IJulia

repotomata("JuliaLang/IJulia.jl", output=Repotomata.gif, output_path="ijulia.gif",
    epochs=250,
    seed_treshold=0.8,
)

ijulia.gif example

React

repotomata("facebook/react", output=Repotomata.gif, output_path="react.gif",
    epochs=350,
    seed_treshold=0.6,
)

react.gif example

Tensorflow

repotomata("tensorflow/tensorflow", output=Repotomata.gif, output_path="tensorflow.gif",
    width=1000,
    epochs=200,
    seed_treshold=0.56,
)

tensorflow.gif example

Django

repotomata("django/django", output=Repotomata.gif, output_path="django.gif",
    width=800,
    epochs=200,
    seed_treshold=0.56,
    background_color=RGB(0.90, 0.90, 0.90)
)

django.gif example

FreeCodeCamp

repotomata("freeCodeCamp/freeCodeCamp", output=Repotomata.gif, output_path="freeCodeCamp.gif",
    width=800,
    epochs=200,
    seed_treshold=0.57,
    background_color=RGB(0.2, 0.75, 0.30)
)

freeCodeCamp.gif example

Rules

New rules can be easily created. See the rules directory for examples

Environment variables

  • The GitHub GraphQL api token must be provided in the environment variable GITHUB_TOKEN
  • JULIA_NUM_THREADS can be used to add threads and speed up computations