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

From XPUB & Lens-Based wiki
 
(69 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Prototyping]]
[[Category:Prototyping]]
[[Category:2011 P3.02]]
[[Category:Turtle Graphics]]


=The Radiant City=
=The Radiant City=
TURTLE GRAPHICS WITH LE CORBUSIER
TURTLE GRAPHICS WITH LE CORBUSIER
<br />
<br />
Please have posted your code + SVG file to the wiki in preparation for
next weeks class where we will review your work.
<br />
<br />


===Concept===
===About===
[[File:Corbusier_City_03.jpg | 500px]]<br />
[[File:Corbusier_City_03.jpg | 500px]]<br />
Le Corbusier Radiant City Model<br />
Le Corbusier Radiant City model<br />
<br />
<br />
[[File:Corbusier_City_01.jpg | 500px]]<br />
[[File:Corbusier_City_01.jpg | 500px]]<br />
Streets and elevated pedestrian area<br />
<br />
<br />
The Radiant City grew out of this new conception of capitalist authority and a pseudo-appreciation for workers’ individual freedoms. The plan had much in common with the Contemporary City - clearance of the historic cityscape and rebuilding utilizing modern methods of production. In the Radiant City, however, the pre-fabricated apartment houses, les unites, were at the center of "urban" life. lecorb5.GIF (33129 bytes)Les unites were available to everyone (not just the elite) based upon the size and needs of each particular family. Sunlight and recirculating air were provided as part of the design. The scale of the apartment houses was fifty meters high, which would accommodate, according to Corbusier, 2,700 inhabitants with fourteen square meters of space per person. The building would be placed upon pilotus, five meters off the ground, so that more land could be given over to nature. Setback from other unites would be achieved by les redents, patterns that Corbusier created to lessen the effect of uniformity.<br />
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.


Inside les unites were the vertical streets, i.e. the elevators, and the pedestrian interior streets that connected one building to another. As in the Contemporary City, corridor streets were destroyed. Automobile traffic was to circulate on pilotus supported roadways five meters above the earth. The entire ground was given as a "gift" to pedestrians, with pathways running in orthogonal and diagonal projections. Other transportation modes, like subways and trucks, had their own roadways separate from automobiles. The business center, which had engendered much elaboration in the Contemporary City, was positioned to the north of les unites and consisted of Cartesian (glass & steel) skyscrapers every 400 meters. The skyscrapers were to provide office space for 3,200 workers per building.<br />
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.<br />


<span style="font-size:8pt">
<span style="font-size:8pt">
Source: [[http://www.uky.edu/Classes/PS/776/Projects/Lecorbusier/lecorbusier.html]]
For full text see Wikipedia [[http://en.wikipedia.org/wiki/Le_Corbusier]]
</span><br />
</span><br />
<br />
<br />
===Scripting Progress===
===Scripting Progress===
[[File:Corbusier_City_04.gif | 500px]]<br />
=====Python : Script <i>radiant_city.py</i> Step #1=====
<br />
<source lang="python">
=====Python : Script 2011-06-08=====
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()
</source>
 
=====Python : Script <i>radiant_city.py</i> Step #2=====
<source lang="python">
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()
</source>
[[File:Screenshot_20110608-1.png]]<br />
 
=====Python : Script <i>radiant_city.py</i> Step #3=====
<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 GARDEN
def garden():
for i in range(4):
fd(bob, 140)
lt(bob)
 
#changing position for building garden()
def position_garden():
pu(bob)
fd(bob, 60)
rt(bob)
fd(bob, 60)
rt(bob)
rt(bob)
pd(bob)
 
#changing position for building skyscraper()
def position_skyscraper():
pu(bob)
fd(bob, 60)
rt(bob)
fd(bob, 95)
pd(bob)
 
#building GROUP OF SKYSCRAPERS with GARDEN
def row(howmany):
for i in range(howmany):
skyscraper()
position_garden()
garden()
position_skyscraper()
row(3)
 
#wait_for_user()
</source>
[[File:Screenshot_20110608-2.png]]<br />
 
=====Python : Script <i>radiant_city.py</i> Step #4=====
<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 GARDEN
def garden():
for i in range(4):
fd(bob, 140)
lt(bob)
 
#changing position for building garden()
def position_garden():
pu(bob)
fd(bob, 60)
rt(bob)
fd(bob, 60)
rt(bob)
rt(bob)
pd(bob)
 
#changing position for building skyscraper()
def position_skyscraper():
pu(bob)
fd(bob, 60)
rt(bob)
fd(bob, 95)
pd(bob)
 
#building GROUP OF SKYSCRAPERS with GARDEN
def row(howmany):
for i in range(howmany):
skyscraper()
position_garden()
garden()
position_skyscraper()
row(3)
 
#wait_for_user()
</source>
[[File:Screenshot_20110608-3.png]]<br />
=====Python : Script <i>radiant_city.py</i> Step #5=====
<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 GARDEN
def garden():
for i in range(4):
fd(bob, 140)
lt(bob)
#changing position for building garden
def position_garden():
pu(bob)
fd(bob, 60)
rt(bob)
fd(bob, 60)
rt(bob)
rt(bob)
pd(bob)
#changing position for building skyscraper
def position_skyscraper():
pu(bob)
fd(bob, 60)
rt(bob)
fd(bob, 95)
pd(bob)
#building group of skyscrapers with garden
def row(howmany):
for i in range(howmany):
skyscraper()
position_garden()
garden()
position_skyscraper()
#changing position for next row
#i know that this is not the right way to do this :(
def position_row():
pu(bob)
bk(bob, 465)
rt(bob)
fd(bob, 155)
lt(bob)
pd(bob)
#building the RADIANT CITY
def city(howmany):
for i in range(howmany):
row(3)
position_row()
city(3)
wait_for_user()
</source>
</source>
[[File:Screenshot_20110608-4.png]]<br />


=====Python : Script 2011-06-14=====
=====SVG-File with Python extension=====
<source lang="python">
<source lang="python">
#building WALL
def wall(l, s):
pd()
fd(l)
lt(90)
fd(s)
lt(90)
fd(l)
rt(90)
pu()
#building SKYSCRAPER
def skyscraper():
for i in range(4):
pd()
styles['fill'] = rgb(0, 0, 0)
wall(50, 20)
pu()
#building GARDEN
def garden():
for i in range(4):
pd()
fd(140)
lt(90)
pu()
#changing position for building garden
def position_garden():
pu()
fd(60)
rt(90)
fd(60)
rt(90)
rt(90)
pd()
#changing position for building skyscraper
def position_skyscraper():
pu()
fd(60)
rt(90)
fd(95)
pd()
#building group of skyscrapers with garden
def row(howmany):
for i in range(howmany):
skyscraper()
position_garden()
garden()
position_skyscraper()
#building the RADIANT CITY
def city(howmany):
for i in range(howmany):
row(3)
city(1)
</source>
</source>
[[File:Screenshot_svg_natasa.png | 300 px]] Screenshot
[[File:Radiant_city_20110608.svg | 500 px]] SVG-file
<br />
<br />
=====Questions=====
How can I change the position of the turtle (row) in a better way?<br />
> start with garden (Baupazelle) and situate the building within it<br />
> think about street (width) as a variable (Platzhalter)<br />
I tried to fill the color of the garden but it didn't work.<br />
> solved (garden has to be made before the skyscraper)<br />
<br />


===Useful Links===
===Useful Links===
<span style="font-size:8pt">
<span style="font-size:8pt">
http://pzwart3.wdka.hro.nl/wiki/Turtle_Graphics
http://pzwart3.wdka.hro.nl/wiki/Turtle_Graphics<br />
http://pzwart3.wdka.hro.nl/wiki/Vector_graphics
http://pzwart3.wdka.hro.nl/wiki/Vector_graphics<br />
http://en.wikipedia.org/wiki/Le_Corbusier
</span>
</span>

Latest revision as of 12:39, 14 June 2011


The Radiant City

TURTLE GRAPHICS WITH LE CORBUSIER

About

Corbusier City 03.jpg
Le Corbusier Radiant City model

Corbusier City 01.jpg
Streets and elevated pedestrian area

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 #3
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 GARDEN
def garden():
	for i in range(4):
		fd(bob, 140)
		lt(bob)

#changing position for building garden()
def position_garden():
	pu(bob)
	fd(bob, 60)
	rt(bob)
	fd(bob, 60)
	rt(bob)
	rt(bob)
	pd(bob)

#changing position for building skyscraper()
def position_skyscraper():
	pu(bob)
	fd(bob, 60)
	rt(bob)
	fd(bob, 95)
	pd(bob)

#building GROUP OF SKYSCRAPERS with GARDEN
def row(howmany):
	for i in range(howmany):
		skyscraper()
		position_garden()
		garden()
		position_skyscraper()
 
row(3)

#wait_for_user()

Screenshot 20110608-2.png

Python : Script radiant_city.py Step #4
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 GARDEN
def garden():
	for i in range(4):
		fd(bob, 140)
		lt(bob)

#changing position for building garden()
def position_garden():
	pu(bob)
	fd(bob, 60)
	rt(bob)
	fd(bob, 60)
	rt(bob)
	rt(bob)
	pd(bob)

#changing position for building skyscraper()
def position_skyscraper():
	pu(bob)
	fd(bob, 60)
	rt(bob)
	fd(bob, 95)
	pd(bob)

#building GROUP OF SKYSCRAPERS with GARDEN
def row(howmany):
	for i in range(howmany):
		skyscraper()
		position_garden()
		garden()
		position_skyscraper()
 
row(3)

#wait_for_user()

Screenshot 20110608-3.png

Python : Script radiant_city.py Step #5
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 GARDEN
def garden():
	for i in range(4):
		fd(bob, 140)
		lt(bob)

#changing position for building garden
def position_garden():
	pu(bob)
	fd(bob, 60)
	rt(bob)
	fd(bob, 60)
	rt(bob)
	rt(bob)
	pd(bob)

#changing position for building skyscraper
def position_skyscraper():
	pu(bob)
	fd(bob, 60)
	rt(bob)
	fd(bob, 95)
	pd(bob)

#building group of skyscrapers with garden
def row(howmany):
	for i in range(howmany):
		skyscraper()
		position_garden()
		garden()
		position_skyscraper()

#changing position for next row
#i know that this is not the right way to do this :(
def position_row():
	pu(bob)
	bk(bob, 465)
	rt(bob)
	fd(bob, 155)
	lt(bob)
	pd(bob)

#building the RADIANT CITY
def city(howmany):
	for i in range(howmany):
		row(3)
		position_row()

city(3)

wait_for_user()

Screenshot 20110608-4.png

SVG-File with Python extension
#building WALL
def wall(l, s):
	pd()
	fd(l)
	lt(90)
	fd(s)
	lt(90)
	fd(l)
	rt(90)
	pu()

#building SKYSCRAPER
def skyscraper():
	for i in range(4):
		pd()
		styles['fill'] = rgb(0, 0, 0)
		wall(50, 20)
		pu()

#building GARDEN
def garden():
	for i in range(4):
		pd()
		fd(140)
		lt(90)
		pu()

#changing position for building garden
def position_garden():
	pu()
	fd(60)
	rt(90)
	fd(60)
	rt(90)
	rt(90)
	pd()

#changing position for building skyscraper
def position_skyscraper():
	pu()
	fd(60)
	rt(90)
	fd(95)
	pd()

#building group of skyscrapers with garden
def row(howmany):
	for i in range(howmany):
		skyscraper()
		position_garden()
		garden()
		position_skyscraper()

#building the RADIANT CITY
def city(howmany):
	for i in range(howmany):
		row(3)

city(1)

Screenshot svg natasa.png Screenshot Radiant city 20110608.svg SVG-file

Questions

How can I change the position of the turtle (row) in a better way?
> start with garden (Baupazelle) and situate the building within it
> think about street (width) as a variable (Platzhalter)
I tried to fill the color of the garden but it didn't work.
> solved (garden has to be made before the skyscraper)

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