Brush Tool in iOS
john at splash21.com
Sun Sep 11 09:02:03 CDT 2011
Hi, Randy. Here's a simple example using a graphic. Just create a new
stack, add a line graphic called 'draw', set it's lineSize to 10 then
put the following script into the card script. Double click clears the
drawing, and each mouseDown starts a new line.
set the points of grc "draw" to empty
put true into sDrawing
if sDrawing then
set the points of grc "draw" to the points of grc "draw" & LF &
put false into sDrawing
set the points of grc "draw" to the points of grc "draw" & LF & LF
On 10/09/2011 23:56, Randy Hengst wrote:
> Hi All,
> I've begun playing with the brush tool in iOS… I'd like the users to be able to draw on the screen. I don't need to save any of the drawings, but I need them to be able to draw and erase….
> I hit a problem right off the bat…. set the brush to 8 throws an error in the simulator and on the device…. the message reads "An error occurred on line: (line number of set brush).
> Has anyone successfully used the brush tool in iOS?
> be well,
> randy hengst
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode