Mixer/Panner: Vary width of latitude lines.

This commit is contained in:
Jonathan Moore Liles 2010-02-12 05:06:26 -06:00
parent f4ded55c78
commit bb8193cd20
1 changed files with 5 additions and 1 deletions

View File

@ -148,16 +148,20 @@ Panner::draw ( void )
/* draw perimeter */
{
Fl_Color c = FL_RED;
const int iter = 8;
const int iter = 6;
for ( int i = iter; i--; )
{
fl_color( c );
fl_line_style( FL_SOLID, 4 * ((float)i / iter) );
fl_arc( tx + (i * (tw / iter)) / 2, ty + (i * (th / iter)) / 2, tw - (i * (tw / iter)), th - (i * ( th / iter )), 0, 360 );
c = fl_color_average( FL_RED, FL_GRAY, (float)i / iter);
}
fl_line_style( FL_SOLID, 0 );
}
/* fl_color( FL_WHITE ); */