Widget Signature

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Widget Signature

Post by Peter@multidesk.se » Sun Dec 31, 2017 3:18 pm

I can not figure out how to change the pathData on widget "signature" (LC 9 DP 11)

Probably not particularly difficult, but it does not work when I try to set it.

Can someone help me with an example of how it might look like?


Happy new year to you all!

/// Peter
/*Whats all the fuss with c# ?*/

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Widget Signature

Post by [-hh] » Wed Jan 03, 2018 7:11 pm

The pathdata is a numerically indexed array, each element p[j] has three keys: path, color and width.

Code: Select all

put the pathdata of widget 1 into p
put p[1]["path"]  -- M24.00 109.00C24.00 108.50 24.00 108.50 24.00 108.00
put p[1]["color"] -- 0,0,0,255 (is r,g,b,alpha)
put p[1]["width"] -- 2.832924
Usual type of pathdata: a MoveTo followed by a cubic bezier curve.

You can set it by filling an array of the above form. The path elements p[j]["path"] should start with a MoveTo followed by a sequence of SVG path elements. These are then concatenated.
Peter wrote:Happy new year to you all!
The same to you.
shiftLock happens

Post Reply

Return to “Mac OS”