|
Post by Kevin78 on Jun 20, 2004 19:59:39 GMT -5
i'm just starting and the programmer's guide isn't clear on how to change the colors for text/background/etc. if anyone has any tips on it plz let me know
|
|
|
Post by AHBanen on Jun 21, 2004 2:07:46 GMT -5
Maybe this is some help (I don't know if there is a textmode background color setting, I couldn't find one):
'Each time run another random background color 'glClearColor( red, green, blue, alpha ) ' Note: using glClearColor, red, green, blue and alpha have values between 0 and 1 (inclusive) glClearColor (rnd()%100/100.0, rnd()%100/100.0, rnd()%100/100.0, rnd()%100/100.0) glClear (GL_COLOR_BUFFER_BIT) SwapBuffers () dim t TextMode (TEXT_BUFFERED) while true 'color (for text) color( red, green, blue) ' Note: using Color, red, green, blue and alpha can have values from 0 upto and including 255 for t = 1 to 10: color (rnd()%256, rnd()%256, rnd()%256): print chr$(rnd()%256): next DrawText () wend
Have fun programming Basic4GL!
André
|
|