Talk:Sierpinski triangle/Graphical

From Rosetta Code

How to added imbedded file

Anyone tell me how to add a graphics file as example? The embedded file widget just gives an example. It doesn't seem to give me a way to upload the file.

Thanks, --Dgamey 01:32, 6 May 2011 (UTC)

You can't upload here? This link is in the bottom of the sidebar -- "Upload file". --Mwn3d 01:52, 6 May 2011 (UTC)
Thanks - I have to learn to scroll down :) --Dgamey 12:00, 6 May 2011 (UTC)

Additional requirements

Take a parameter N for order (by command line is fine)
Calculate canvas size to allow for N (up to a limit)

--Dgamey 01:57, 6 May 2011 (UTC)

What's all this talk about canvas size for N? What's N got to do with how big the triangle is? --Ledrug 03:31, 5 July 2011 (UTC)
First guess: So that no anti-aliasing or sub-pixel considerations are required to draw the image, so that representing the image using a 1-bit palette makes sense, and so such things don't cause an "oversaturation" of the resulting image such that you end up with a large, solid Triforce image. --Michael Mol 15:44, 5 July 2011 (UTC)

Order

I didn't see a reference or anything in the WP article about what order N is. N appears to be the number of times the triangle is subdivided giving 2^N triangles per side. Seems obvious to me but it may not be to others.

--Dgamey 12:00, 6 May 2011 (UTC)