(02-20-2024, 05:02 PM)bplus Wrote: Oh hey @bert22306Nice! Makes me feel so important, for my name to be enhanced that way. So you're saying, you too indulge in "fake 3D"?
Let me show you my 3D Printer!
Code: (Select All)_Title "Fake 3D demo" 'b+ 2020- 01-30
Const xmax = 700, ymax = 300, xc = 300, yc = 300
Screen _NewImage(xmax, ymax, 32)
_Delay .25 'need time for screen to load before attempting to move it.
_ScreenMove _Middle
ReDim colr As _Unsigned Long
For i = 1 To 50
colr = _RGB32(0 + 5 * i, 0, 0)
Text 60 + i, 20 + i, 256, colr, "Bert"
Next
Sleep
Sub Text (x, y, textHeight, K As _Unsigned Long, txt$)
Dim fg As _Unsigned Long, cur&, I&, multi, xlen
fg = _DefaultColor
'screen snapshot
cur& = _Dest
I& = _NewImage(8 * Len(txt$), 16, 32)
_Dest I&
Color K, _RGBA32(0, 0, 0, 0)
_PrintString (0, 0), txt$
multi = textHeight / 16
xlen = Len(txt$) * 8 * multi
_PutImage (x, y)-Step(xlen, textHeight), I&, cur&
Color fg
_FreeImage I&
End Sub
Wanted: Very Simple 3D system
|
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 9 Guest(s)