User:Natasa Siencnik/prototyping/turtle: Difference between revisions

From XPUB & Lens-Based wiki
Line 91: Line 91:
</source>
</source>
[[File:Screenshot_20110608-1.png | 300px]]<br />
[[File:Screenshot_20110608-1.png | 300px]]<br />
=====Python : Script <i>radiant_city.py</i> Step #2=====
<source lang="python">
</source>


=====SVG-File=====
=====SVG-File=====
<source lang="python">
<source lang="python">
from TurtleWorld import *
world = TurtleWorld()
bob = Turtle()
bob.delay = 0.01
print bob
#building WALL
#l for long wall
#s for short wall
def wall(l, s):
fd(bob, l)
lt(bob)
fd(bob, s)
lt(bob)
fd(bob, l)
rt(bob)
#building SKYSCRAPER
def skyscraper():
for i in range(4):
wall(50, 20)
#building GROUP OF SKYSCRAPERS
def row(howmany):
    for i in range(howmany):
        skyscraper()
        pu(bob)
        fd(bob, 140)
        pd(bob)
#wait_for_user()
</source>
</source>



Revision as of 19:33, 8 June 2011


The Radiant City

TURTLE GRAPHICS WITH LE CORBUSIER

Concept

Corbusier City 03.jpg
Le Corbusier Radiant City Model

Corbusier City 01.jpg

For a number of years French officials had been unsuccessful in dealing with the squalor of the growing Parisian slums, and Le Corbusier sought efficient ways to house large numbers of people in response to the urban housing crisis. He believed that his new, modern architectural forms would provide a new organizational solution that would raise the quality of life for the lower classes. His Immeubles Villas (1922) was such a project that called for large blocks of cell-like individual apartments stacked one on top of the other, with plans that included a living room, bedrooms and kitchen, as well as a garden terrace.

Not merely content with designs for a few housing blocks, soon Le Corbusier moved into studies for entire cities. In 1922, he presented his scheme for a "Contemporary City" for three million inhabitants (Ville Contemporaine). The centerpiece of this plan was the group of sixty-story, cruciform skyscrapers; steel-framed office buildings encased in huge curtain walls of glass. These skyscrapers were set within large, rectangular park-like green spaces. At the center was a huge transportation hub, that on different levels included depots for buses and trains, as well as highway intersections, and at the top, an airport. He had the fanciful notion that commercial airliners would land between the huge skyscrapers. Le Corbusier segregated pedestrian circulation paths from the roadways and glorified the use of the automobile as a means of transportation. As one moved out from the central skyscrapers, smaller low-story, zigzag apartment blocks (set far back from the street amid green space), housed the inhabitants. Le Corbusier hoped that politically-minded industrialists in France would lead the way with their efficient Taylorist and Fordist strategies adopted from American industrial models to reorganize society. As Norma Evenson has put it, "the proposed city appeared to some an audacious and compelling vision of a brave new world, and to others a frigid megalomaniacally scaled negation of the familiar urban ambient."

In the 1930s, Le Corbusier expanded and reformulated his ideas on urbanism, eventually publishing them in La Ville radieuse (The Radiant City) of 1935. Perhaps the most significant difference between the Contemporary City and the Radiant City is that the latter abandons the class-based stratification of the former; housing is now assigned according to family size, not economic position.[7] Some have read dark overtones into The Radiant City: from the "astonishingly beautiful assemblage of buildings" that was Stockholm, for example, Le Corbusier saw only “frightening chaos and saddening monotony.”[1] He dreamed of "cleaning and purging" the city, bringing "a calm and powerful architecture"—referring to steel, plate glass, and reinforced concrete. Though Le Corbusier's designs for Stockholm did not succeed, later architects took his ideas and partly "destroyed" the city with them.

For full text see Wikipedia [[1]]

Scripting Progress

Python : Script radiant_city.py Step #1
from TurtleWorld import *

world = TurtleWorld()
bob = Turtle()
bob.delay = 0.01

print bob

#cruciform skyscraper
fd(bob, 50)
lt(bob)
fd(bob, 20)
lt(bob)
fd(bob, 50)
rt(bob)
fd(bob, 50)
lt(bob)
fd(bob, 20)
lt(bob)
fd(bob, 50)
rt(bob)
fd(bob, 50)
lt(bob)
fd(bob, 20)
lt(bob)
fd(bob, 50)
rt(bob)
fd(bob, 50)
lt(bob)
fd(bob, 20)
lt(bob)
fd(bob, 50)
rt(bob)

wait_for_user()
Python : Script radiant_city.py Step #2
from TurtleWorld import *
import random

world = TurtleWorld()
bob = Turtle()
bob.delay = 0.01

print bob

#building WALL
#l for long wall
#s for short wall
def wall(l, s):
	fd(bob, l)
	lt(bob)
	fd(bob, s)
	lt(bob)
	fd(bob, l)
	rt(bob)

#building SKYSCRAPER
for i in range(4):
	wall(50, 20)

#wait_for_user()

Screenshot 20110608-1.png

Python : Script radiant_city.py Step #2
SVG-File
from TurtleWorld import *

world = TurtleWorld()
bob = Turtle()
bob.delay = 0.01

print bob

#building WALL
#l for long wall
#s for short wall
def wall(l, s):
	fd(bob, l)
	lt(bob)
	fd(bob, s)
	lt(bob)
	fd(bob, l)
	rt(bob)

#building SKYSCRAPER
def skyscraper():
	for i in range(4):
		wall(50, 20)

#building GROUP OF SKYSCRAPERS
def row(howmany):
    for i in range(howmany):
        skyscraper()
        pu(bob)
        fd(bob, 140)
        pd(bob)

#wait_for_user()

Useful Links

http://pzwart3.wdka.hro.nl/wiki/Turtle_Graphics
http://pzwart3.wdka.hro.nl/wiki/Vector_graphics
http://en.wikipedia.org/wiki/Le_Corbusier