Paint Tools
Dale Pond
dalesvp at qwest.net
Mon Aug 25 08:03:02 EDT 2003
Hi,
Is there a manual on using the Paint Tools? Can't find it referenced in
the Documentation. Actually is there a Rev manual or how-to book that
covers drawing graphics?
I have a HC script that draws geometric patterns according to math
calculations. Works great in HC but the pencil tool does not draw in Rev
(or if it does I can't see the result). The pencil will draw in a new
stack but not on this imported HC stack. I don't think I understand how
Rev draws, hence the need for a simple manual or how-to instructions.
Here's the script:
on mouseUp
send mouseUp to cd button "Erase Graphic" --clear any pre-existing image
put cd fld "b" into b
put cd fld "e" into e --value of e
put b+e into d --value of d
put d into cd fld "d"
put e+d into a --value of a
put a into cd fld "a"
put 100 into H --StartHorz
put 100 into V --StartVert
if a > 200 then
answer "Put smaller number into field b or e"
exit mouseUp
end if
choose rect tool
set filled to true
set pattern to 12
drag from H,V to H+b,V+d -- draw J
set pattern to 22
drag from H+b,V to H+a+b,V+d -- draw K
choose pencil tool
drag from H+d,V to H+d,V+d
set filled to false
set pattern to 1
choose browse tool
put "J = bd" && "=" && b*d into cd fld x
put "K = ad" && "=" && a*d into cd fld y
put b*d && "+" && a*d && "=" && (b*d)+(a*d) && "=" && "2D" into cd fld
result1
end mouseUp
--
Life, Light, Love and Laughter,
Dale Pond
Sympathetic Vibratory Physics
Sacred Science - Sacred Life
http://www.svpvril.com
SVP Discussion Forum:
http://groups.yahoo.com/group/svpvril/
More information about the use-livecode
mailing list