Computer Science Canada

dont get it...

Author:  xmdxtreme [ Sat May 15, 2004 11:46 am ]
Post subject:  dont get it...

what does -= and += mean?

Author:  Paul [ Sat May 15, 2004 12:04 pm ]
Post subject: 

+= is variable:= variable + something
so a+=1 is a:=a+1

same goes for -=

Author:  xmdxtreme [ Sat May 15, 2004 12:38 pm ]
Post subject: 

o ok i got 1 more qestion how can i set my back ground color black and text green cause every time i do it only the background behind the text is black not the whole screen?

Author:  MyPistolsIn3D [ Sat May 15, 2004 12:46 pm ]
Post subject: 

This help?
code:
var font := Font.New ("arial:18")
Draw.FillBox (0, 0, maxx, maxy, black)
Font.Draw ("This is how", 100, 100, font, brightgreen)

Author:  xmdxtreme [ Sat May 15, 2004 12:47 pm ]
Post subject: 

yeah thats what i wanted thx! Laughing

Author:  xmdxtreme [ Sat May 15, 2004 12:49 pm ]
Post subject: 

no thats no use sorry but i have to put everything in that. I know theres another way.

Author:  MyPistolsIn3D [ Sat May 15, 2004 12:56 pm ]
Post subject: 

explain more what you are doing, or post your code to give me a better idea of what yer doing.

Author:  guruguru [ Sat May 15, 2004 1:13 pm ]
Post subject: 

To set the background color use colorback(black) and to set the text color use color(green). The thing with colorback- it is the background of the text, not of the screen. An easy way to get around this is simply to clear the screen once after you set the background color.

code:

colorback(black)
cls

color(green)

put "Yay!!! The background is black and this text is green!!!"

Author:  xmdxtreme [ Sat May 15, 2004 1:39 pm ]
Post subject: 

thank you Laughing


: