Fill figure with JSFL
Posted
by Igor
on Stack Overflow
See other posts from Stack Overflow
or by Igor
Published on 2010-02-14T16:49:43Z
Indexed on
2010/05/26
1:01 UTC
Read the original article
Hit count: 312
I draw figure in Flsh ID with JSFL methods, for example
// draw rectangle
doc.addNewLine({x:0, y:0}, {x:2000, y:0});
doc.addNewLine({x:2000, y:0}, {x:2000, y:500});
doc.addNewLine({x:2000, y:500}, {x:0, y:500});
doc.addNewLine({x:0, y:500}, {x:0, y:0});
// how can I fill it, because this way doesn't work
doc.setFillColor('#0000ff');
© Stack Overflow or respective owner