

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Some concept of Building Programming Experience are Trees, Square Limit Language, Special Forms, Quizanssheet, Professor Abstraction, Compound Procedure, Procedures And Recursion. Main points of this lecture are: Henderson Picture Language, Frames, Henderson Picture Language, Images, File Needed, Included, Folders, Unzipped, Directory, Commands
Typology: Slides
1 / 3
This page cannot be seen from the preview
Don't miss anything!
Lecture 9: Henderson Picture Language
Lecture 9 involved defining frames (using vectors) and creating images that w could manipulate (by flipping over, altering coordinates, etc.). The file needed for this is called lec9.scm. It needs to be unzipped and the folders included in the file, one called “bpe” and one called “images”, should be in the directory C:\u6001. If they aren’t, place them there (copy/paste), or many of the load commands evaluated in scheme won’t work. The two files we will be working with are called hutils.scm and ps4go.scm. Procedures in hutils.scm must be completed before ps4go.scm can be used. Both must be opened in scheme (C-x, C-f Æ then type in hutils.scm or ps4go.scm, depending on which file you wish to open. M-o evaluates everything at once in an open file)
We can create a frame by specifying two vectors. The center point of the picture shown below is represented by (0.5, 0.5). We can draw pictures in the frame and specify the frame.
Manipulate the picture by specifying the coordinate frame. Listing (0, 0), (1, 0), and (0,
We can flip the image
or distort it.
Picture not piece of data; it is a procedure. Give it one of the coordinate frames and it draws the image in that frame.
Painter is a procedure that takes in a frame and outputs an image. You can manipulate procedures.
(define make-vect list)
The above is equivalent to (define (make-vect x y) (list x y))
Write a procedure (in lec9.scm, ps4go.scm) to flip an image horizontally.
(1, 1)
Below has a new origin at (1, 0), a new vector 1 at (0, 0), and a new vector 2 at (1, 1) (1, 1)