Draw with pencil tool from a script to produce wiggly line?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Draw with pencil tool from a script to produce wiggly line?
I want to draw a line graph from a script.
I have an image area which I can write on using the mouse, but cannot move the pencil tool from a script and hence produce the graph line. I remember doing this in HyperCard.
Of course there may be another way of doing this ... suggestions welcomed
Thanks
I have an image area which I can write on using the mouse, but cannot move the pencil tool from a script and hence produce the graph line. I remember doing this in HyperCard.
Of course there may be another way of doing this ... suggestions welcomed
Thanks
Hi Geoff,
try this:
And replace the coordinates with yours.
Tested and works
Best
Klaus
try this:
Code: Select all
on mouseUp
choose pencil tool
drag from "10,10" to "100,10"
end mouseUp
Tested and works

Best
Klaus
Hi Geoff,
well your question was how to clear an image, and that's what my line does completely emptying the image
Sorry, I don't think you can clear certain parts of your image.
Maybe you can try an "undo" right after the last editing?
I'm not sure, but its worth a try:
Best
Klaus
well your question was how to clear an image, and that's what my line does completely emptying the image

Sorry, I don't think you can clear certain parts of your image.
Maybe you can try an "undo" right after the last editing?
I'm not sure, but its worth a try:
Code: Select all
on mouseup
undo
end mouseup
Best
Klaus