Changeset 974 for trunk/src/update_waitbar.m
- Timestamp:
- Nov 18, 2016, 7:14:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/update_waitbar.m
r924 r974 28 28 pos=get(hwaitbar,'Position');%read waitbar position in pixels 29 29 set(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]) 32 CData=zeros(floor(pos(4)),floor(pos(3)),3); 33 CData(:,:,3)=1 ;% initial color blue(rgb=[1 1 0]) 34 32 35 CData(:,1:floor(advance_ratio*size(CData,2)),2)=0; % advancement part in red (suppress the second color component green) 33 36 set(hwaitbar,'CData',CData)
Note: See TracChangeset
for help on using the changeset viewer.