Talk:Fractal tree: Difference between revisions

From Rosetta Code
Content added Content deleted
(why a cairo version)
 
Line 5: Line 5:
So I decided to write the needed cairo code to see it... in the same time, I wanted to preserve the original code, maybe there are others using SGE happily... So defining a constant WITH_CAIRO, the compilation uses the other code. Personally I've compiled it with
So I decided to write the needed cairo code to see it... in the same time, I wanted to preserve the original code, maybe there are others using SGE happily... So defining a constant WITH_CAIRO, the compilation uses the other code. Personally I've compiled it with
<tt>gcc -DWITH_CAIRO -I /usr/include/cairo -lSDL -lcairo fractree.c</tt>. --[[User:ShinTakezou|ShinTakezou]] 16:07, 5 May 2010 (UTC)
<tt>gcc -DWITH_CAIRO -I /usr/include/cairo -lSDL -lcairo fractree.c</tt>. --[[User:ShinTakezou|ShinTakezou]] 16:07, 5 May 2010 (UTC)

== Random Perturbations? ==

Are we to add random variation to the tree or not? Two of the answers have it (including one I wrote) and the third does not. It would help if there was some consistency in what we are asked to do... –[[User:Dkf|Donal Fellows]] 09:40, 6 May 2010 (UTC)

Revision as of 09:40, 6 May 2010

Why a cairo version of the C code

I wanted just to try it but without installing SGE, and the reason why I do not want to install SGE is that the project seems to me not well maintained. The Freshmeat.net page has a broken link for the main website. More over, I've downloaded the source from what it seems the main page now (found using google), this one, to check if the PI constant was defined into sge.h, and surprise, it is defined there, but as 3.1414(more correct digits).... The source tarball was sge030809.tar.gz just in case one wants to check it too.

So I decided to write the needed cairo code to see it... in the same time, I wanted to preserve the original code, maybe there are others using SGE happily... So defining a constant WITH_CAIRO, the compilation uses the other code. Personally I've compiled it with gcc -DWITH_CAIRO -I /usr/include/cairo -lSDL -lcairo fractree.c. --ShinTakezou 16:07, 5 May 2010 (UTC)

Random Perturbations?

Are we to add random variation to the tree or not? Two of the answers have it (including one I wrote) and the third does not. It would help if there was some consistency in what we are asked to do... –Donal Fellows 09:40, 6 May 2010 (UTC)