- sclgraf.shq [c+]
[..] La fonction [shq] drawPieshq
Code
int drawpie_shq_xpl(){
double length=1;
double cx=length, cy=length;
double r_min=length/3, r_max=length, theta_min=0, theta_max=45;
scltracefa(§, ƒ, ∅);
scltracefc("scl-%s (%s) : %s\n\n", sclver(), sclsec(), temps_char(0));
shq::beginDrawing(PRM_BEGINDRAWING_SHQ); // <Initializes the
local "connection"
shq::newFigure("drawpie_shq"); // <Creates a new
figure;
shq::drawPie(cx, cy, r_min, r_max, theta_min, theta_max,
/*"[vert]darkGreen"*/"[#00CC0026]darkGreen"); //vert transparence 15%
cx=-length; cy= length; theta_max+=90;
shq::drawPie(cx, cy, r_min, r_max, theta_min, theta_max,
/*"darkYellow[carotte]"*/"darkYellow[#FFC00026]"); //carotte transparence 15%
cx=-length; cy=-length; theta_max+=90;
shq::drawPie(cx, cy, r_min, r_max, theta_min, theta_max,
/*"[bleu]darkBlue"*/"[#0066FF26]darkBlue"); //bleu transparence 15%
cx= length; cy=-length; theta_max+=90;
shq::drawPie(cx, cy, r_min, r_max, theta_min, theta_max,
/*"darkRed[chaire]"*/"darkRed[#C0000026]"); //chaire transparence 15%
shq::axisAuto();
shq::axisEqual("drawpie_shq");
shq::saveImage("./srt/drawpie_shq.svg");
shq::endDrawing(); // <Closes the
"connection"
scltracefe(§, ƒ, ∅);
return 0;
}
/* ƒ décorée par
le 07-06-2025 11:34:30 */
Sortie
[>..\xpl\src\sclgraf.shq.xpl.cpp.drawpie_shq_xpl]
scl-25.06 (gwin64) : 07-06-2025 11:34:30
[<..\xpl\src\sclgraf.shq.xpl.cpp.drawpie_shq_xpl]