amisur
February 8, 2022, 10:53am
1
Hello,
I want to divide the chart into four quadrants and name the left,right,top and bottom parts with different background colors. Which functions should be used? Is it GfxSetBkColor ( color ) or GfxTextOut ( "text", x, y )
_SECTION_BEGIN( "LowLevelGraphicsChart" );
EnableTextOutput( False );
GfxSetOverlayMode( 2);
left = Status( "left" );
right = Status( "right" );
top = Status( "top" );
bottom = Status( "bottom" );
width = ( right - left ) / 2;
height = ( bottom - top ) / 2;
_SECTION_END();
Source:-
How do I start to learn about Low-level graphics ?
I want to built the RRG chart. But I'm not a programmer. I don't know where to start.
[23659134_10204169208148376_1200013637445971817_n]
Thank you
fxshrat
February 8, 2022, 11:05am
2
Look at functions GfxFillSolidRect or GfxGradientRect . You can set color and positions with those two ones.
As for text there are GfxSetTextColor and GfxTextOut or there is GfxDrawText.
2 Likes
amisur
February 10, 2022, 1:22pm
3
I am not good at math. I tried the following but not able to understand
_SECTION_BEGIN( "LowLevelGraphicsChart" );
EnableTextOutput( False );
GfxSetOverlayMode( 2);
left = Status( "left" );
right = Status( "right" );
top = Status( "top" );
bottom = Status( "bottom" );
width = ( right - left ) / 2;
height = ( bottom - top ) / 2;
GfxGradientRect( 0, 00, 600, 600, colorLavender, colorBlack );
_SECTION_END();
Thank you
fxshrat
February 10, 2022, 1:34pm
4
Use the rectangle function multiple times.
In your case four times (with different x/y and different colors).
_SECTION_BEGIN( "LowLevelGraphicsChart" );
EnableTextOutput( False );
GfxSetOverlayMode( 2);
left = Status( "pxchartleft" );
right = Status( "pxchartright" );
top = Status( "pxcharttop" );
bottom = Status( "pxchartbottom" );
width = Status( "pxwidth" );
height = Status( "pxheight" );
GfxGradientRect( 0, 0, width/2, height/2, colorLavender, colorBlack );
//GfxGradientRect( ... );
//GfxGradientRect( ... );
//GfxGradientRect( ... );
_SECTION_END();
1 Like
system
Closed
May 21, 2022, 1:35pm
5
This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.