Cellular automata in GLSL+PyQT. Various rulesets can be found by checking out individual commits. http://hut.pm/cellmade_gallery.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
215 B

import math
def zoomLevel2SliderValue(n):
return ZOOM_SLIDER_COEFFICIENT * math.log(n)
def sliderValue2ZoomLevel(n):
return math.exp(1 / ZOOM_SLIDER_COEFFICIENT * n)