Ignore:
Timestamp:
Nov 18, 2016, 7:14:06 PM (7 years ago)
Author:
sommeria
Message:

aver synchro updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/update_waitbar.m

    r924 r974  
    2828pos=get(hwaitbar,'Position');%read waitbar position in pixels
    2929set(hwaitbar,'Units','normalized')%set back to normalize(the waitbar scales with the GUI)
    30 CData=ones(floor(pos(4)),floor(pos(3)),3);
    31 CData(:,:,3)=0 ;% initial color yellow (rgb=[1 1 0])
     30% CData=ones(floor(pos(4)),floor(pos(3)),3);
     31% CData(:,:,3)=0 ;% initial color yellow (rgb=[1 1 0])
     32CData=zeros(floor(pos(4)),floor(pos(3)),3);
     33CData(:,:,3)=1 ;% initial color blue(rgb=[1 1 0])
     34
    3235CData(:,1:floor(advance_ratio*size(CData,2)),2)=0; % advancement part in red (suppress the second color component green)
    3336set(hwaitbar,'CData',CData)
Note: See TracChangeset for help on using the changeset viewer.