Talk:Sierpinski triangle: Difference between revisions

Content added Content deleted
(→‎Variations: new section)
Line 8: Line 8:


:: I think converting it into graphics would be rather simple, even without a really existing function. It is enough to advance x on every space, and set pixel on every *, and advance y on every "\n" or similar... Anyway... what about languages (like Postscript, Metafont...) which have a "natural" graphics nature? Or what about using the codes in the [[Raster graphics operations]] for languages that implemented that, and —also?— a certain common library/package for the others, if (easily) available? --[[User:ShinTakezou|ShinTakezou]] 10:54, 2 May 2009 (UTC)
:: I think converting it into graphics would be rather simple, even without a really existing function. It is enough to advance x on every space, and set pixel on every *, and advance y on every "\n" or similar... Anyway... what about languages (like Postscript, Metafont...) which have a "natural" graphics nature? Or what about using the codes in the [[Raster graphics operations]] for languages that implemented that, and —also?— a certain common library/package for the others, if (easily) available? --[[User:ShinTakezou|ShinTakezou]] 10:54, 2 May 2009 (UTC)

== Variations ==

How about a related task to draw the gasket using the [[wp:chaos game]]? Or the Xor method mentioned in [[wp:Sierpinski triangle|the Wikipedia article]]? I've done both in the past; pretty simple, really. -- [[User:Eriksiers|Eriksiers]] 00:51, 4 November 2009 (UTC)