Changeset 1993 in ntrip for trunk/BNC/bncfigure.cpp


Ignore:
Timestamp:
Nov 20, 2009, 9:47:36 AM (17 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigure.cpp

    r1990 r1993  
    5252  slotNextAnimationFrame();
    5353  for (int ii = 0; ii <= 1000; ii++) {
    54     _rgb[0][ii] = qrand() % 255;
    55     _rgb[2][ii] = qrand() % 255;
    56     _rgb[1][ii] = qrand() % 255;
     54    _ran[0][ii] = qrand() % 255;
     55    _ran[1][ii] = qrand() % 40;
     56    _ran[2][ii] = qrand() % 100;
    5757  }
    5858}
     
    181181    if(_maxRate > 0.0) {
    182182      int yy = int(yLength * (it.value()->_mean / _maxRate));
    183       QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
     183      QColor color = QColor::fromHsv(0,100+_ran[1][anchor],155+_ran[2][anchor]);
    184184      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,
    185185                       QBrush(color,Qt::SolidPattern));
Note: See TracChangeset for help on using the changeset viewer.