Browse Source

Add fancy echo-lines.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
c416a8a098
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      Panner.C

+ 13
- 1
Panner.C View File

@@ -134,6 +134,8 @@ Panner::draw ( void )

bbox( tx, ty, tw, th );

fl_push_clip( tx, ty, tw, th );

fl_color( FL_WHITE );

const int b = 10;
@@ -200,7 +202,7 @@ Panner::draw ( void )
{
Point *p = &_points[ i ];

fl_color( (Fl_Color) 10 + i );
Fl_Color c = (Fl_Color)(10 + i);

float px, py;

@@ -209,8 +211,16 @@ Panner::draw ( void )
const int bx = tx + ((tw / 2) * px + (tw / 2));
const int by = ty + ((th / 2) * py + (th / 2));

fl_color( c );
fl_pie( bx, by, pw(), ph(), 0, 360 );

fl_color( c = fl_darker( c ) );
fl_arc( bx - 5, by - 5, pw() + 10, ph() + 10, 0, 360 );
fl_color( c = fl_darker( c ) );
fl_arc( bx - 10, by - 10, pw() + 20, ph() + 20, 0, 360 );
fl_color( c = fl_darker( c ) );
fl_arc( bx - 30, by - 30, pw() + 60, ph() + 60, 0, 360 );

char pat[4];
snprintf( pat, 4, "%d", i + 1 );

@@ -218,6 +228,8 @@ Panner::draw ( void )
fl_font( FL_HELVETICA, ph() + 2 );
fl_draw( pat, bx + 1, by + 1, pw() - 1, ph() - 1, FL_ALIGN_CENTER );
}

fl_pop_clip();
}




Loading…
Cancel
Save