- sclgraf.shq [c+]
[..] La fonction [shq] drawTextshq
Code
int drawtext_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("drawtext_shq"); // <Creates a new
figure;
int fs=16;
double length=8*((double)fs);
double hight=1.5*((double)fs);
double top_left_x=length, top_left_y=hight;
shq::drawText(top_left_x, top_left_y, "Bagad Gwer", "[vert]darkGreen",
shaqParams("fontSize", fs, "fontName", "Brito"));
top_left_x=-length; top_left_y= hight;
shq::drawText(top_left_x, top_left_y, "Bagad Melen", "darkYellow[carotte]",
shaqParams("fontSize", fs, "fontName", "Brito"));
top_left_x=-length; top_left_y=-hight;
shq::drawText(top_left_x, top_left_y, "Bagad Glaz","[bleu]darkBlue",
shaqParams("fontSize", fs, "fontName", "Brito"));
top_left_x= length; top_left_y=-hight;
shq::drawText(top_left_x, top_left_y, "Bagad Ruz","darkRed[chaire]",
shaqParams("fontSize", fs, "fontName", "Brito"));
shq::axisAuto();
shq::axisEqual("drawtext_shq");
shq::saveImage("./srt/drawtext_shq.svg");
shq::endDrawing(); // <Closes the
"connection"
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 18-04-2025 08:13:15 */
Sortie
[>..\xpl\src\sclgraf.shq.xpl.cpp.drawtext_shq_xpl]
scl-25.04 (gwin64) : 18-04-2025 08:13:15
[<..\xpl\src\sclgraf.shq.xpl.cpp.drawtext_shq_xpl]