galaxy2
Posted: Sat Jul 09, 2005 10:42 pm
Hello, this is my first try. There is a rendered version (13 MB, very high resolution) at:
http://www.andrew.cmu.edu/user/ehuber/galaxies2.png
I don't know what the convention is on this forum. But please don't rip my code (:
Context Free is an extremely cool program. I run it on my iBook G4, it is very smooth and pretty well thought out. My only complaint is that when I was browsing through the examples, I expected (Render (apple-r)) to be a toggle -- so it would stop the rendering. Apple-period never occured to me. Really a very minor thing :p
Any suggestions or comments ?
[/code]
http://www.andrew.cmu.edu/user/ehuber/galaxies2.png
I don't know what the convention is on this forum. But please don't rip my code (:
Context Free is an extremely cool program. I run it on my iBook G4, it is very smooth and pretty well thought out. My only complaint is that when I was browsing through the examples, I expected (Render (apple-r)) to be a toggle -- so it would stop the rendering. Apple-period never occured to me. Really a very minor thing :p
Any suggestions or comments ?
Code: Select all
startshape galaxies
rule galaxies{
galaxy{}
galaxy{ x 5 y 3.5 r 30 }
galaxy{ x 7 s 0.1 r 40 }
galaxy{ x -1 y 5 s 0.075 r 230 }
}
rule galaxy{
CIRCLE{}
branch{}
branch{ r 120 }
branch{ r 240 }
}
rule branch{
CIRCLE{ x 1 s 0.8 b 0.1 }
// modify s for cool stuff
galaxy{ s 0.4 }
// modify r for cool stuff
branch{ x 2 r 100 b 0.1 s 0.8 }
}