APPLYING
MATH
PRINCIPLES TO CREATE GRAPHICS FOR
WEB PAGES USING
SCHEME
PROGRAMMING
Objective:
Create a basic web page in HTML with text and an image.
Create a picture with balloons and a present by programming in DrScheme.
Convert that picture into a gif file.
Add the balloon picture to a web page programmed in HTML.
Activities:
Set up
basic web page
.
Learn
basic drawing commands
.
Add present with a bow by applying basic drawing commands.
Convert that picture to a gif file using
directions below
.
Add that new picture to the basic web page.
Materials:
DrScheme Program Environment - download from
Rice
Command Reference Handouts for HTML and Scheme Graphics
Notepad
Internet Explorer
Photo Editor which includes a gif file type
Contact Information:
Home Page of
Karen North
Email
knorth@cs.rice.edu
CONVERTING TO A GIF FILE
Execute program in Scheme
Hold down alt key and then print screen key
Open up an image editor that has GIF file type such as Paint, Microsoft Photo Editor,
IrfanView
Edit / Paste - this will paste the print screen bitmap into the editor.
Choose enlarge file if needed.
Save As - Name file with a short descriptive identifier no spaces
Change file type to .gif
Note advantage of Scheme graphic is the small file size which increases load time.
BACK TO MAIN PAGE