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


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigurelate.cpp

    r1992 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() % 255;
     56    _ran[2][ii] = qrand() % 100;
    5757  }
    5858}
     
    156156    if(maxLate > 0.0) {
    157157      int yy = int(yLength * (it.value() / maxLate));
    158       QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
     158      QColor color = QColor::fromHsv(180,200,120+_ran[2][anchor]);
    159159      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,
    160160                       QBrush(color,Qt::SolidPattern));
Note: See TracChangeset for help on using the changeset viewer.