set the hilite of btn "Erase Graph" of card "Graph paper" to false
wait for 10 ticks
set the hilite of btn "Erase Graph" of card "Graph paper" to true
end repeat
lock screen
pop card
show cd fld 1
show btn 2
show btn 3
unlock screen with venetian blinds
end mouseUp
-- part 2 (button)
-- low flags: 80
-- high flags: 0002
-- rect: left=23 top=261 right=288 bottom=73
-- title width / last selected line: 0
-- icon id / first selected line: 12394 / 12394
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Abscissa
----- HyperTalk script -----
on mouseDown
repeat while the mouse is down
put the MouseV into vert
if vert < 90 then
set the loc of the target to 48,90
else
if vert > 280 then
set the loc of the target to 48,280
else
get the loc of the target
put vert into item 2 of it
set the loc of the target to it
end if
end if
end repeat
end mouseDown
-- part 3 (button)
-- low flags: 80
-- high flags: 0002
-- rect: left=266 top=259 right=302 bottom=293
-- title width / last selected line: 0
-- icon id / first selected line: 10849 / 10849
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Ordinate
----- HyperTalk script -----
on mouseDown
repeat while the mouse is down
put the MouseH into horz
if horz > 468 then
set the loc of the target to 468,280
else
if horz < 47 then
set the loc of the target to 47,280
else
get the loc of the target
put horz into item 1 of it
set the loc of the target to it
end if
end if
end repeat
end mouseDown
-- part 4 (field)
-- low flags: 81
-- high flags: 2004
-- rect: left=77 top=64 right=321 bottom=500
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 12
-- style flags: 256
-- line height: 16
-- part name:
----- HyperTalk script -----
on MouseLeave
hide me
end MouseLeave
on MouseUp
hide me
end MouseUp
-- part contents for background part 13
----- text -----
Help Card 6
-- part contents for background part 2
----- text -----
GRAPHING
After you have your function in the form that you want and your Macintosh can understand, you will be ready to plot your graph.
Hold on though, there are just a few more steps. First, there may already be a function plotted on the "graph" paper. This will not pose any problems when you actually plot your new function but it may get in the way. If you only want one function to be displayed at a time then you should click on the black button on the bottom of the card called "Erase Graph".
-- part contents for card part 4
----- text -----
After you click on the Erase Graph button the entire plot of the old function will be erased and the scale markings of the graph will also be gone.
Two buttons will appear just like the ones on this card. By clicking on them and dragging you can set the location of the X and the Y axes.
The new coordinate grid will be drawn when you plot your new function.
Why don't you practice clicking and draging the two buttons now?