News for hackers. Stuff that matters.
Re:Interactive Sierpinski Triangles by trollied on Friday March 31, 2017 @05:25AM (#14002230)
I first started coding because I wanted to create fractals (Julia sets, Mandlebrots, Sierpinski gaskets).

Fractint (https://fractint.org) is brilliant for exploring these things of mathematical beauty.

Re:Interactive Sierpinski Triangles by oceanghost on Wednesday April 05, 2017 @03:42PM (#14044938)
My lord fractint still exists?! THANK YOU KINDLY.
Re:Interactive Sierpinski Triangles by wolfgangK on Friday March 31, 2017 @03:30AM (#14001811)
Always nice to see some clojure code, even more so when to code is interactive. However, I would not have coded it that way. Call it premature abstraction if you will, but I think, especially in a language guiding you toward purity and immutability like Clojure, that one should avoid "doing" things until the last moment. So instead of drawing triangle, I'd compute them, and only draw the computed triangles as as sequence of polylines. The added benefit it that you can them compose any other transformation on the resulting triangles.

I have not found the time yet to actually write the blog post, but my take would be more like :

https://scientific-coder.github.io/Playground/2017-03-20-fra...

Re:Interactive Sierpinski Triangles by weavie on Friday March 31, 2017 @05:20AM (#14002205)
I did something similar, but took it a little further and used Minecraft to render the pyramids. [1]

It was a lot of fun.

[1] http://taoofcode.net/on-triangles/

Re:Interactive Sierpinski Triangles by merraksh on Friday March 31, 2017 @08:05AM (#14002884)
My favourite Sierpinski triangle page:

http://www.oftenpaper.net/sierpinski.htm

It shows many ways of constructing one, including links to Pascal's triangle.

Re:Interactive Sierpinski Triangles by throwaway7645 on Thursday March 30, 2017 @10:51PM (#14000861)
Pretty neat. The code for this and the older submissions looks pretty clean & elegant to me despite my novice level skills with Clojure and Lisp in general.
Re:Interactive Sierpinski Triangles by viebel on Friday March 31, 2017 @08:57AM (#14003194)
Here is another interactive blog post with the Sierpinski triangle and other fractals - inspired by the Logo turtle http://exupero.org/hazard/post/fractals/
Re:Interactive Sierpinski Triangles by andy_ppp on Friday March 31, 2017 @06:35AM (#14002519)
Before uni (15+ years ago) I made a tetrahedron Sierpinski Gasket - it was very fun but crashed the graphics cards of the day with few divisions.
Re:Interactive Sierpinski Triangles by JacksonGariety on Thursday March 30, 2017 @11:36PM (#14001004)
I was hoping it would be in Racket. Nonetheless great!