set the hilite of btn "Options" of card "Graph paper" to false
wait for 10 ticks
set the hilite of btn "Options" of card "Graph paper" to true
end repeat
-- Card 2
visual effect scroll up
go to card "Graph Options"
put the loc of the msg into msgloc
set the loc of the msg to 5,163
put "These buttons let you specify the graph's precision."
wait for 90 ticks
-- Flash lineDensity buttons
repeat 2 times
repeat with s = 29 to 38
set the hilite of btn id s to not the hilite of btn id s
wait for 10 ticks
set the hilite of btn id s to not the hilite of btn id s
end repeat
end repeat
put "These buttons let you set size of the data points."
wait for 90 ticks
-- Flash the dataBrush buttons
repeat 2 times
repeat with s = 16 to 23
set the hilite of btn id s to not the hilite of btn id s
wait for 10 ticks
set the hilite of btn id s to not the hilite of btn id s
end repeat
end repeat
-- Do field flashing
put "These fields let you set the Axis Scale."
put "9,10,12,13" into hemlock
repeat 2 times
repeat with d = 1 to 4
get item d of hemlock
set the style of cd fld id it to transparent
wait for 10 ticks
set the style of cd fld id it to shadow
end repeat
end repeat
wait for 60 ticks
hide the msg
set the loc of the msg to msgloc
lock screen
pop card
unlock screen with venetian blinds
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=354 top=167 right=191 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Experts Only╔
----- HyperTalk script -----
on mouseUp
show cd fld 1
end mouseUp
-- part 3 (field)
-- low flags: 81
-- high flags: 2004
-- rect: left=45 top=60 right=278 bottom=475
-- 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 7
-- part contents for background part 2
----- text -----
The next thing you may want to do is choose the graphing options that you want. You can choose the size and the shape of the data points, the density of the graph, and the scale of the X and the Y axes. It is useful to note that by placing the X and the Y axes in the right place and scaling the axes to the proper size you can "zoom" in on any part of the coordinate plane.
GRAPHING
At this point you have written a function, edited it into a standard form, set all the graph options for your graph, and moved the axes to the best position for your function.
You are now ready to plot your function.
-- part contents for card part 3
----- text -----
There is one feature of the plotting mechanism that experienced users of HyperCard may want to know about. This stack uses the painting tools to plot the data points of your functions. In effect it's taking a paint brush and dabbing it on the the right spots. With the options card you can set the size of the paint brush.
I assumed that most people wanted the data points in black, but if you prefer you can set the pattern to something else besides "black". If the pattern is not black you will be warned before plotting your function.
You can create great effects with this. Try plotting a function with a large black circle, and then plotting the same function with a smaller grey circle. Pretty neat.