color differences

Blitz3D Forums/Blitz3D Beginners Area/color differences

chwaga(Posted 2007) [#1]
How can i create 2 rectangles, and text, but they're different color? I know the rect and text commands but i can't figure out how to make them different color. I want to have the 2 rectangles black and the text blue. Any help is appreciated


Yahfree(Posted 2007) [#2]
Color R,G,B?


chwaga(Posted 2007) [#3]
doesnt that just work for all rects/text/etc. as a global, applying to all, not invdividually?


b32(Posted 2007) [#4]
Yes, but it doesn't change the color of rectangles that are drawn allready:
repeat
 color 0, 255, 0
 rect 0,0,64,64
 color 255, 0, 0
 rect 64,0,64,64
 color 255, 255, 255
 text 0, 0, "hello world"
 flip
until keyhit(1)



chwaga(Posted 2007) [#5]
ooh. thanks!


chwaga(Posted 2007) [#6]
now, is there a way to INCREASE the size of the text? It's kinda small on my running res.


Yahfree(Posted 2007) [#7]
Setfont()?


chwaga(Posted 2007) [#8]
perfect, thanks


Yo! Wazzup?(Posted 2007) [#9]
A little off topic, but, with the input command, to change the set text a different color from the text you type in:

Color 255,0,0
Write "Type in your name "
Color 0,0,255
name$ = Input("")