Sierpinski square curve: Difference between revisions

m
(J draft)
Line 240:
 
=={{header|J}}==
It looks like there's two different (though similar) concepts implemented here, of what a "Sierpinski square curve" looks like (the wikipedia writeup shows 45 degree angles -- like [[j:File:Sierpinski_curve.png]] but many of the implementations here show only right angles). And, the wikipedia writeup is remarkably obtuse about some of the details of the structure. And, we've got some dead links here. So, for now, a quickie ascii art implementation:<lang J> 1j1#"1' #'{~{{l,(1,~0{.~#y),l=.y,.0,.y}}^:3,.1
# # # # # # # #
# # # #
Line 256:
# # # #
# # # # # # # # </lang>
 
=={{header|Java}}==
{{trans|C++}}
6,962

edits