Keywords: Osgood curve.svg Osgood curve a non-self-intersecting curve with nonzero area It is formed from an initial triangle by removing a wedge connecting the apex of the triangle to the opposite side and then doing the same thing recursively to the smaller triangles formed by this removal At each level of the recursion the removed wedges grow narrower so that the amount of area removed in each level decreases exponentially leaving a nonzero amount of area that is never removed 2015-12-12 own David Eppstein other versions cc-zero Source code The SVG library used for this code can be found at http //www ics uci edu/~eppstein/PADS/SVG py <source lang Python > import sys from PADS SVG import SVG colors size 500 margin 10 triangles 1j 1 2+1j def subdivide triangles fraction x 0 5 1-fraction for p q r in triangles yield p 1-x p+x r q yield q x p+ 1-x r r for i in range 13 fraction 1 / 7 1 2 i triangles list subdivide triangles fraction svg SVG size+ size+2 margin 1+1j sys stdout svg group style stroke colors black fill colors blue shift margin 1+1j for T in triangles points p size+shift for p in T svg polygon points svg ungroup svg close </source> Fractals Uploaded with UploadWizard |