; dxFrontBuffer()/dxRect Example ; Engage graphics mode Graphics 640,480,16 ; Set the drawing buffer to front - instant drawing ops! dxSetBuffer dxFrontBuffer() ; Repeat this until user presses ESC While Not dxKeyHit(1) ; Set a random dxColor dxColor dxRnd(255),dxRnd(255),dxRnd(255) ; Draw a rectangle at a random location, with a random width and height ; plus randomly choose if the rectangle is solid or just an outline dxRect dxRnd(640),dxRnd(480),dxRnd(50),dxRnd(50),dxRnd(0,1) ; Blitz is so dang fast, we need a delay so you can watch it draw! Delay 10 Wend