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
Widget Signature
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
Widget Signature
/*Whats all the fuss with c# ?*/
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Widget Signature
The pathdata is a numerically indexed array, each element p[j] has three keys: path, color and width.
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.
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
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.
The same to you.Peter wrote:Happy new year to you all!
shiftLock happens