diff options
author | pommicket <pommicket@gmail.com> | 2021-10-03 11:56:52 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2021-10-03 11:56:52 -0400 |
commit | 45e36030a20e77c109bd746e7be4a64a7c9a2fbd (patch) | |
tree | f9983770d889bd7d475b53382783c140f68d1f78 /sandboxes | |
parent | 2afbc90e16e58ae8ca42a13573308758ac398492 (diff) |
README, more examples
Diffstat (limited to 'sandboxes')
-rw-r--r-- | sandboxes/00.txt | 2 | ||||
-rw-r--r-- | sandboxes/01.txt | 6 | ||||
-rw-r--r-- | sandboxes/02.txt | 5 | ||||
-rw-r--r-- | sandboxes/03.txt | 3 | ||||
-rw-r--r-- | sandboxes/04.txt | 5 | ||||
-rw-r--r-- | sandboxes/EXAMPLE.txt (renamed from sandboxes/EXAMPLE_circulation.txt) | 8 |
6 files changed, 27 insertions, 2 deletions
diff --git a/sandboxes/00.txt b/sandboxes/00.txt new file mode 100644 index 0000000..cb780c3 --- /dev/null +++ b/sandboxes/00.txt @@ -0,0 +1,2 @@ +color_scale 0.1 +add vec3(y * y * tan(z), z * z * cos(x), -x * x * tan(y)) diff --git a/sandboxes/01.txt b/sandboxes/01.txt new file mode 100644 index 0000000..0ab5eca --- /dev/null +++ b/sandboxes/01.txt @@ -0,0 +1,6 @@ +grains 500000 +grain_refresh_rate 0.03 +color_scale 1 +color #7700aa +color2 #aa0077 +add 0.1*vec3(-y/tan(z), x*x, exp(cos(y))) diff --git a/sandboxes/02.txt b/sandboxes/02.txt new file mode 100644 index 0000000..313a931 --- /dev/null +++ b/sandboxes/02.txt @@ -0,0 +1,5 @@ +grains 1000000 +color_scale 1 +color #ffffff +color2 #7f7f7f +add vec3(-tan(y)*x, cos(z)*y, sin(z)*x) diff --git a/sandboxes/03.txt b/sandboxes/03.txt new file mode 100644 index 0000000..12e7621 --- /dev/null +++ b/sandboxes/03.txt @@ -0,0 +1,3 @@ +grains 500000 +color_scale 1 +add 0.1*cross(p, sin(p*20)) diff --git a/sandboxes/04.txt b/sandboxes/04.txt new file mode 100644 index 0000000..a257fa7 --- /dev/null +++ b/sandboxes/04.txt @@ -0,0 +1,5 @@ +grains 500000 +color_scale 1 +color2 #0000ff +color #ffffff +add 0.1*vec3(1.0/z, x*z*tan(y), y*x*tan(z)) diff --git a/sandboxes/EXAMPLE_circulation.txt b/sandboxes/EXAMPLE.txt index 8d31e84..49de071 100644 --- a/sandboxes/EXAMPLE_circulation.txt +++ b/sandboxes/EXAMPLE.txt @@ -1,12 +1,16 @@ # This file controls the behavior of function sandbox. # Here I'll explain what all the settings do, so you can make your own sandboxes. +# To create a new sandbox, just add a new .txt file in this folder. It'll automatically appear in the sandbox selection menu. # Any empty line or line beginning with the '#' character (like these first three) is ignored +# All the settings below are optional and have defaults. So you could create a sandbox with just +# one line, e.g. 'add vec3(-z,0,x)'. # This sets the number of grains used in the simulation to 20,000 grains 20000 # The grain "refresh rate" is the proportion of the grains which are -# regenerated (replaced by new ones in the starting area) every second -grain_refresh_rate 0.01 +# regenerated (replaced by new ones in the starting area) every second. +# In other words, (1 / this) gives you the "lifetime" of each grain in seconds. +grain_refresh_rate 0.1 # This controls the size of the starting area grains are added to start_radius 3 # Set the color of the grains (you can look up "color picker" to find tools for finding color codes) |