Fundamentals of Computer Science 1 (CS151 2003S)
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[EC]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Lab Writeups]
[Outlines]
[Project]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Scheme Reference]
[Scheme Report]
[CS151 2003S Gum]
[CS151 2002F]
[CS151 History]
[SamR]
Back to Complete Scripts. On to Input and Output.
Held: Friday, 4 April 2003
Summary:
Today we consider a number of ways to use algorithms to generate or
modify art
.
Related Pages:
circles.scm,
the code we wrote yesterday (with some variations).
art.scm,
some useful code for today's lab.
Assignments
Notes:
Overview:
algorithmic art.
(gsfu-create-image width height func)
creates a new image of the specified width and height by applying
func at every position.
func takes x and y as parameters and returns
a color value (list of red, green, blue)
(gsfu-load-image filename) loads an image.
(gsfu-map-image image layer func) creates
a new image by applying func at ever position.
func should be a function from color to color.
(gsfu-map-coordinates image layer func)
creates a new image by applying func at every position.
(Do you notice a trend here?)
func takes many too many parameters for me to mention
here.
Thursday, 16 January 2003 [Samuel A. Rebelsky]
Back to Complete Scripts. On to Input and Output.
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[EC]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Lab Writeups]
[Outlines]
[Project]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Scheme Reference]
[Scheme Report]
[CS151 2003S Gum]
[CS151 2002F]
[CS151 History]
[SamR]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Tue May 6 09:30:08 2003.
The source to the document was last modified on Thu Jan 16 13:46:00 2003.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2003S/Outlines/outline.36.html.
You may wish to
validate this document's HTML
;
;
Check with Bobby