03-26-2004, 06:52 PM
The code red_Marvin posted looks fine, but all the other code blocks in this thread are unreadable. I'm using the default PhpBB theme, subsilver.
Quote:Isn't it possible to implement different text colors for different skins?
QBASIC'3d vortex......2003
'Http://Relsoft.Ath.cx
'Here's my take on the starfield stuff...
1 IF I% = 0 THEN SCREEN 13 ELSE DIM Dist!(200), Rot!(200)
2 I% = (I% + 1) MOD 200
3 IF J% < 257 THEN J% = (J% + 1)
4 PSET (Dist!(I%) * COS(Rot!(I%) / 56.32716) + 160, Dist!(I%) * SIN(Rot!(I%) / 56.32716) + 100), 0
5 Rot!(I%) = (Rot!(I%) + .5 * (Dist!(I%) / 50)) * -(Rot!(I%) <= 360)
6 IF Dist!(I%) < 0 OR Dist!(I%) > 170 THEN Rot!(I%) = RND * 360
7 IF Dist!(I%) < 0 OR Dist!(I%) > 170 THEN Dist!(I%) = RND * 170 ELSE Dist!(I%) - (2 - (Dist!(I%) / 150))
8 IF J% > 255 THEN PSET (Dist!(I%) * COS(Rot!(I%) / 56.32716) + 160, Dist!(I%) * SIN(Rot!(I%) / 56.32716) + 100), Dist!(I%) + 50 ELSE PALETTE J%, 65536 * (J% \ 4) + 256 * (J% \ 4) + (63 - (J% \ 4))
9 IF INKEY$ = "" THEN 2
QBASIC
print "Just testing..."
QBASICPRINT "test"
Print "test"
print "test"
REM <--- hmmm
QBASICprint "blah
blah
blah
"blah
"
blah
qbasic
' Here's some code just to show how nice it looks:
'
'
'$include: 'foo.bi'
'$dynamic
DEFINT A-Z
CLS
INPUT "what is your name?", yourname$
FOR I = 1 To 7
LOCATE I, 10
PRINT yourname$ + " RULES!"
IF A$ = "19" THEN
END
END IF
A$ = LTRIM$(STR$(INT(RND * 20) + 1))
NEXT I
' We're exiting now
END
qbasic
SCREEN 13
PRINT "Test"
PRINT Test
PRINT Test$
Print Test + Test
LINE (5,5)-(8,8),15,BF
PSET (5,5),15