
update()
Purpose
Update screen graphics
Description
Render the current frame buffer to the screen. This means that a lot of drawing operations can be performed without slowing down performance
Syntax
update( )
Arguments
Example
loop
    clear()
    col = { random( 101 ) / 100, random( 101 ) / 100, random( 101 ) / 100, 1 }
    x = random( gWidth() )
    y = random( gHeight() )
    for w = 0 to gWidth() step 5 loop
        line( { x, y },{ w, 0 }, col )
        line( { x, y },{ w, gHeight() }, col )
    repeat
    for h = 0 to gHeight() step 5 loop
        line( { x, y },{ 0, h }, col )
        line( { x, y},{ gWidth(), h}, col )
    repeat
    for i = 1 to 500 loop
        update()
    repeat
repeat

Associated Commands