8nhuman8 / nebular-automata Goto Github PK
View Code? Open in Web Editor NEWThe program for visualizing a probabilistic cellular automata
Home Page: https://t.me/nebular_automata
License: MIT License
The program for visualizing a probabilistic cellular automata
Home Page: https://t.me/nebular_automata
License: MIT License
ZeroDivisionError
randomly and rarely occurs when executing renderer.py
.
Traceback:
$ py src/renderer.py 500 500 -r -o -cn 5
1 [2021-03-14T21:47:19.040162] 0.00080 % (1 / 125000)
2 [2021-03-14T21:47:19.040162] 0.00160 % (2 / 125000)
Traceback (most recent call last):
File "src/renderer.py", line 153, in <module>
render_image(args)
File "...\nebular-automata\src\utils.py", line 22, in wrapper
return_value = func(*args, **kwargs)
File "src/renderer.py", line 98, in render_image
gradient = utils.gradient(nebula.current_generation, colors)
File "...\nebular-automata\src\utils.py", line 56, in gradient
grads.append(gradient2(gens // (len(colors) - 1), colors[i], colors[i + 1]))
File "...\nebular-automata\src\utils.py", line 70, in gradient2
d_r = abs(c1.r - c2.r) / gens
ZeroDivisionError: division by zero
Use Tkinter
for making user-friendly interface.
Make it possible to create GIF-files for visual viewing the development of the structure.
Maybe use matplotlib
for it.
Use numpy
arrays instead of Python default lists to increase the speed of the program.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.