3 ms·
Installed and ran fine, appears to perform fine using some basic examples. Obligatory fractals - https://ibb.co/f40sFdx https://ibb.co/f40sFdx. sudo apt instal
by pbhjpbhj 8y ago
Installed and ran fine, appears to perform fine using some basic examples. Obligatory fractals - https://ibb.co/f40sFdx https://ibb.co/f40sFdx.
sudo apt install cmake git-core libboost-all-dev libdouble-conversion-dev libopenexr-dev libtbb-dev libglm-dev gedit checkinstall && sudo apt-get install libxcursor-dev libxinerama-dev libxrandr-dev libglu1-mesa-dev libgles2-mesa-dev libgl1-mesa-dev libxi-dev && git clone --recursive https://github.com/doug-moen/curv; https://github.com/doug-moen/curv; cd curv; make; sudo checkinstall -D; sudo dpkg -i ./curv.deb
Then used this from the examples:
make_shape {
dist : everything.dist,
colour (x,y,_,_) :
let z = [x,y];
color = [0,0,0];
done = false;
in do
for (i in 0 ..< 100) (
if (!done) (
z := csqr(z) + [x,y];
if (dot(z,z) > 4)
let cr = (i-1)-log(log(dot(z,z))/log 2)/log 2;
in (
color := [0.95+.012*cr, 1, .2+.4*(1+sin(.3*cr))];
done := true;
)
)
);
in sRGB.HSV color,
bbox : [[-2.5,-2,-2],[1.5,2,2]],
is_2d : true,
}