Main
   Home
   About
   DiscussionBoard
Files
   About
   Submit
   Search
Downloads
   Action
   QB64
Links
   Link to us
QB45.org
[ Back to QB45 | FAQ | Search a message | Reply to this message | Back to messages ]

gablea on 12/03/11 - 11:48:12

hi all

I have been trying to convert this code for ages

Sub sprint(txt$, x, y, size)
Dim ScanX As Integer
Dim ScanY As Integer
Dim background(9585)

GET (0, 0)-(639, 15), background
Line (0, 0)-(639, 15), 0, BF
LOCATE 1, 1: Print txt$
For ScanY = 0 To 12
For ScanX = 0 To 639
If Point(ScanX, ScanY) <> 0 Then
Line (ScanX * size + x, ScanY * size + y)-(ScanX * size + size + x, ScanY * size + size + y), Point(ScanX, ScanY), BF
End If
Next ScanX
Next ScanY
PUT (0, 0), background, PSET
End Sub

But I do not know how I can convert this code to work with the Future.lib

Could one of you really smart people PLEASE convert this for me and put me out of my missery

Andy

zenex on 01/11/12 - 09:00:11

yo dude

Sub sprint(txt$, x, y, size)
Dim ScanX As Integer
Dim ScanY As Integer
Dim background(9585)

Future.Get 0, 0, 639, 15, background()
Future.FillBox 0, 0, 639, 15, 0 'theres future.line/future.box/future.fillbox
Future.Print 0, 0, txt$, 15, -1
For ScanY = 0 To 12
For ScanX = 0 To 639
If Future.Point(ScanX, ScanY) <> 0 Then
Future.FillBox ScanX * size + x, ScanY * size + y, ScanX * size + size + x, ScanY * size + size + y, Future.Point(ScanX, ScanY)
End If
Next ScanX
Next ScanY
Future.Put 0, 0, background()
End Sub

im guessing you'd want to use this in 640x480 with 8 bit color depth. use Set640x480 8 instead of SCREEN 12
drop me a line at "jasonwoodland at hotmail dawt com" to let me know if it works or not.

Reply to this message
Name:
Message:
Please enter this number:
No HTML allowed. You may use BB-code in your posting.
Members
Login
Register
QB45 Members
Member List