SVG Sierpinski Carpet Generator

20.04.2010 by kerim in natural | pysvg | python

Coded as described in the Construction section (square based part) in Wikipedia. SVG export requires pySVG.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
License:
Copyright (c) 2007-2010 Kerim Mansour
All rights reserved.

Redistribution and use in so

pySVG meets Trundle, the turtle

28.02.2010 by kerim in natural | pysvg | python

My python pySVG just got a mate named Trundle the turtle (named after a turtle in my kids english school book). For a while now I haven't coded much for pySVG. I had a lot of requests and emails though and one of those involves resurrecting parts of my ol


Lindenmayer Systems using Python

21.12.2007 by kerim in natural | python

A few days ago i posted some code to create screens with stars and galaxies. Today i introduce a new part usable for creating Lindenmayer Systems.

Here the rendering of a penrose tiling using my module:

Just a short introduction:

A Lindenmayer System i


Starfields and Galaxies with Python

19.12.2007 by kerim in natural | pygame | python | tutorial

A long time ago i spend a lot of my resources programming fractals and "natural" phenomenons. Since my last adventure with pygame i was playing around with the idea of implementing some algorithms of old times in python anew and use pygame to test them. A