| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | GpiPartialArc |
I'm using GpiPartialArc to create 'pie' sections/charts. I haven't been
able to fill the individual sections w/ colors. I have tried flood fill
but no go:
// Set the center of the circle
ptl.x = 264 ;
ptl.y = 290 ;
GpiMove ( hps, &ptl );
// Set color for the pie section
if ( Timer2Count == 4 )
GpiSetColor ( hps, CLR_BLACK );
else
GpiSetColor ( hps, CLR_GREEN );
// Draw the pie section
GpiPartialArc ( hps, &ptl, MAKEFIXED ( 35, 0 ),
MAKEFIXED ( 0, 0 ),
MAKEFIXED ( 120, 0 )) ;
ptl.x = 264 ;
ptl.y = 290 ;
GpiLine ( hps, &ptl ) ;
--- Maximus/2 3.01
* Origin: Pebble BBS (1:202/1207)SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1 @PATH: 202/1207 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.