Grafiikka : komennot

CLS


   KUVAUS

Tyhjentää ruudun (tai kuvan, jos piirtäminen on asetettu kuvaan) nykyiseksi taustaväriksi.

Taustaväriä muutetaan ClsColor-käskyllä.

   KÄYTTÖ
CLS

Katso myös: CLSCOLOR

   ESIMERKKI
'First create an image
img= MakeImage(256,256)
DrawToImage img
    ClsColor cbyellow
    Cls 'Clear background to yellow
    
    Color cbred
    Text 40,40,"This is a picture"
DrawToScreen

ClsColor cbwhite
Color cbblack

'Draw all, main loop
Repeat

    DrawImage img,20,20

    Text 300,150,"SCREEN"

    DrawScreen

Until EscapeKey()

<<TAKAISIN