2005.02.10 - SLIDE 1 IS146 - Spring 2005 Computation: Programmability Prof. Marc Davis & Prof. Peter Lyman UC Berkeley SIMS Tuesday and Thursday 2:00 pm – 3:30 pm Spring 2005 http://www.sims.berkeley.edu/academics/courses/is146/ s05/ IS146: Foundations of New Media
33
Embed
2005.02.10 - SLIDE 1IS146 - Spring 2005 Computation: Programmability Prof. Marc Davis & Prof. Peter Lyman UC Berkeley SIMS Tuesday and Thursday 2:00 pm.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
2005.02.10 - SLIDE 1IS146 - Spring 2005
Computation: Programmability
Prof. Marc Davis & Prof. Peter Lyman
UC Berkeley SIMS
Tuesday and Thursday 2:00 pm – 3:30 pm
Spring 2005http://www.sims.berkeley.edu/academics/courses/is146/s05/
• to c– params [height]– make halfheight :height/2– left 90– forward :height– right 90– forward :halfheight – right 180– forward :halfheight– left 90– forward :height – left 90– forward :halfheight– end
2005.02.10 - SLIDE 20IS146 - Spring 2005
Making an “A”
• to a– params [height]– make halfheight :height/2– left 90– forward :height– right 90– forward :halfheight – right 90– forward :halfheight – right 90– forward :halfheight– right 180– forward :halfheight– right 90– forward :halfheight– left 90– end
2005.02.10 - SLIDE 21IS146 - Spring 2005
Making an “M”
• to m– params [height]– make diagonal (:height/2)*7/5– left 90– forward :height– right 135– forward :diagonal – left 90– forward :diagonal – right 135– forward :height– left 90– end
2005.02.10 - SLIDE 22IS146 - Spring 2005
Making an “R”
• to r– params [height]– make halfheight :height/2– make diagonal :halfheight*7/5– left 90– forward :height– right 90– forward :halfheight – right 90– forward :halfheight – right 90– forward :halfheight – left 135– forward :diagonal– left 45– end
2005.02.10 - SLIDE 23IS146 - Spring 2005
Making a “space”
• to space– params [length]– penup– forward :length– pendown– end
2005.02.10 - SLIDE 24IS146 - Spring 2005
Making “MARC”
• to marc– params [height kerning]– m :height– space :kerning– a :height– space :kerning– r :height– space :kerning– c :height– end
2005.02.10 - SLIDE 25IS146 - Spring 2005
Making “hopback”
• to hopback– params [length]– penup – back :length– pendown– end
2005.02.10 - SLIDE 26IS146 - Spring 2005
Making a Circle of “MARC”
• to marccircle– params [letterheight letterkerning]– make marcnamewidth
((:letterheight*5/2)+(3*:letterkerning))– repeat 360/:letterheight – [marc :letterheight :letterkerning– hopback :marcnamewidth – right :letterheight– ]– end
2005.02.10 - SLIDE 27IS146 - Spring 2005
Conditionally Making “MARC” Circles• to marccirclecond
– params [letterheight letterkerning circletightness]– make marcnamewidth
• Review of Last Time– Computation: Programming Concepts
• Today– Computation: Programmability
• Preview of Next Time– Computational Media
2005.02.10 - SLIDE 30IS146 - Spring 2005
Andrea Brown on Hillis
• Hillis says that “Learning a programming language is not nearly as difficult as learning a natural human language.” Do you think that if humans had difficulty comprehending natural language that their ability to learn programming language would be affected?
2005.02.10 - SLIDE 31IS146 - Spring 2005
Andrea Brown on Hillis
• Hillis mentions that the “most successful computers … are generally regarded by computer designers as having poorly designed instruction sets.” Why is that? If computers are meant to mimic the complexity of humans why don’t “successful computers” have elaborate instruction sets?
• Review of Last Time– Computation: Programming Concepts
• Today– Computation: Programmability
• Preview of Next Time– Computational Media
2005.02.10 - SLIDE 33IS146 - Spring 2005
Readings for Next Time
• Walter Benjamin. The Work of Art in the Age of Mechanical Reproduction. In: Illuminations, edited by Walter Benjamin, New York: Schocken Books, 1985, p. 217-251. – Discussion Questions
• Steven Lybeck
• Lev Manovich. The Language of New Media, Cambridge, Massachusetts: The MIT Press, 2001, p.18-61. – Discussion Questions