Page 1 of 1

Widget Signature

Posted: Sun Dec 31, 2017 3:18 pm
by Peter@multidesk.se
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

Re: Widget Signature

Posted: Wed Jan 03, 2018 7:11 pm
by [-hh]
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.