- sclgraf.shq [c+]
[..] La fonction [shq] drawMotorBoatshq
Code
int drawmotorboat_shq_xpl(){
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s) : %s\n\n", sclver(), sclsec(), temps_char(0));
shq::beginDrawing(PRM_BEGINDRAWING_SHQ); // <Initializes the
local "connection"
shq::newFigure("drawmotorboat_shq"); // <Creates a new
figure;
double rot=0, length=1;
double cx=length, cy=length;
shq::drawMotorBoat(cx, cy, rot, length, "darkGreen[vert]");
cx=-length; cy= length; rot = 90;
shq::drawMotorBoat(cx, cy, rot, length, "darkYellow[carotte]");
cx=-length; cy=-length; rot = 180;
shq::drawMotorBoat(cx, cy, rot, length, "darkBlue[bleu]");
cx= length; cy=-length; rot = 270;
shq::drawMotorBoat(cx, cy, rot, length, "darkRed[chaire]");
shq::axisAuto();
shq::axisEqual("drawmotorboat_shq");
shq::saveImage("./srt/drawmotorboat_shq.svg");
shq::endDrawing(); // <Closes the
"connection"
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 19-04-2025 13:10:30 */
Sortie
[>..\xpl\src\sclgraf.shq.xpl.cpp.drawmotorboat_shq_xpl]
scl-25.04 (gwin64) : 19-04-2025 13:10:30
[<..\xpl\src\sclgraf.shq.xpl.cpp.drawmotorboat_shq_xpl]