Educational materials

View   r1
CodeMoveWheel 1 - 30 Jul 2008 - Main.AaronStriegel
Line: 1 to 1
Added:
>
>
META TOPICPARENT name="IntroEngF08LC6"

function moveWheel () 

global priceWheel;
global priceText;
global priceArrow;
global priceSpace;
global pricePos;

pricePos = pricePos + 1;

for j=1:5          
    % Map to the 0 to 19 (zero index)
    wheelPos = mod((pricePos+j-1),20);    
    changeText(priceText(j), priceWheel(wheelPos+1));
end
    
redraw;

end

META FILEATTACHMENT attachment="moveWheel.m" attr="" comment="" date="1217446852" name="moveWheel.m" path="moveWheel.m" size="320" stream="moveWheel.m" tmpFilename="/usr/tmp/CGItemp39396" user="AaronStriegel" version="1"

Revision 1r1 - 30 Jul 2008 - 19:40:53 - AaronStriegel
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Syndicate this site RSSATOM