I'm kludging together code. I'm using the following code (which works fine):
Code: Select all
addLine(x0, y0, x1, y1);I'd like to also change the color of the line as they are drawn. Would the following code be suitable?
Code: Select all
RColor(r,g,b);Code: Select all
Script exception in script 'C:/<path>/spiral_trace.js': Error: :-1:-1: RColor(): Did you forget to construct with 'new'? <native>(23, 165, 231) at -1 anonymous() at 31 <anonymous>() at :scripts/Misc/MiscDevelopment/RunScript/RunScript.js:120 <eval>() at 1 <native>() at -1 main() at :scripts\autostart.js:826 <global>() at :scripts\autostart.js:839So, what does that mean?
How do I "construct with new"?
Perhaps a example code showing typical use of RColor() would help. QCAD documentation was overwhelming. Searching "color" here yielded the haystack instead of the needle I was looking for.
I'm using QCAD version 3.24.3.0 (3.24.3) and Windows 11 Pro.
Thanks!
HS