Lecture #6

CSC101 Computer Literacy

Fall 1996

Lecture 6

Tuesday, September 24, 1996

Ileana Streinu

0. Questions?

1. Getting Help in Hypercard: Go/Help

2. What else can buttons do?

- tasks

- visual effects

- hidden/visible buttons

In button mode (Tools/Button tool), select the button; Button info -> Tasks (Goto card..; Visual effect) or Style (Transparent).

Visual effects work on our good monitors only if we set it to 256 colors (instead of Thousands): Apple menu -> Control Panels -> Monitor -> 256 colors.

(Compare to Netscape: Back, Forward, going where the link takes you to).

3. Graphics in Hypercard:

Where?

-on background (goes to every card with that background)

-on foreground (only on a particular card)

How?

-Tools/Graphics tools.

Demo (Graphics demo):

-open new stack. Notice:

-file location

-card size

-copy background

- open in new window

- drag the tools menu

- Show:

- line size/brush shape

- patterns

- drawing shapes: rectangles, ovals, polygons. Fill tool (Pattern).

- erasing; changing patterns; fat bits

- selecting; lasso tools; cut, copy, paste graphics.

- Options: draw filled; draw multiple.

- copy/paste ClipArt.
- Select/Paint: flip, invert, rotate, darken, lighten, trace edges.

- Using the Clipboard to get pictures into Word documents:

How did I get this here?







4. Simple scripts.

Demo: Musical Lesson.

Create a stack of three cards.

Card 1:

Title: Musical Lessons

Author's name at the bottom.

2 buttons, taking to Lesson 1 and Lesson 2, with visual effects.

1 button for help ?: pops up a scrolling field of instructions.

1 field for instructions: hidden when card is first open; shown when click on button ?; hidden when click on field.

Card 2:

Graphics: a piano keyboard.

Buttons: one on each key. Clicking on button A plays the harpsichord note "A", on button B plays the note "B", etc.

1 button to take you back to "Music Lessons"

1 button to go to next lesson.

Card 3:

Graphics: clip art - a rabbit playing a trumpet.

1 transparent button on the rabbit. Click on it, play "boing".

1 button to take you back to "Musical Lessons"

1 button to go to previous card.

6. If time allows: Graphic calculator (demo part); animation paradigm.