02-28-2023, 05:59 PM
I played around with this for a while and this is the best I could come up with:
By playing around with the amount of left and right image used you can draw the white beams closer or farther apart. By overlaying the original image in between the two outer images you can create a pulsing effect showing your ion engines increasing/decreasing in power. This also softens the slightly darker line in between the left and right image that no matter how hard I try I can't get rid of.
I took your image and processed two of them overlapping side by side in a few paint programs I have. The result is always the same as what QB64 does, so QB64 is actually blending them properly.
Code: (Select All)
DIM Image AS LONG ' alpha image
DIM i AS INTEGER ' for/next loop counter
DIM Pulse AS INTEGER ' number of times to overlay image
DIM PulseDir AS INTEGER ' inc/dec pulse counter
Image = _LOADIMAGE("tam1-4.png", 32) ' load alpha image
ImageLeft = _NEWIMAGE(130, 288, 32) ' left image holder
ImageRight = _NEWIMAGE(130, 288, 32) ' right image holder
_PUTIMAGE (0, 0), Image, ImageLeft ' create left image
_PUTIMAGE (0, 0), Image, ImageRight, (74, 0)-(203, 287) ' create right image
SCREEN _NEWIMAGE(640, 480, 32) ' graphics screen
Pulse = 0 ' initialize variables
PulseDir = 1
DO ' begin pulse loop
_LIMIT 30 ' 30 frames per second
CLS
Pulse = Pulse + PulseDir ' increment/decrement pulse amount
IF Pulse > 10 OR Pulse < 1 THEN PulseDir = -PulseDir ' reverse pulse adder
FOR i = 1 TO Pulse ' loop the number of pulses
_PUTIMAGE (32, 0), Image ' overlay alpha image over and over
NEXT i
_PUTIMAGE (0, 0), ImageLeft ' overlay left image
_PUTIMAGE (130, 0), ImageRight ' overlay right image
_DISPLAY ' update screen
LOOP UNTIL _KEYDOWN(27) ' ESC to end
By playing around with the amount of left and right image used you can draw the white beams closer or farther apart. By overlaying the original image in between the two outer images you can create a pulsing effect showing your ion engines increasing/decreasing in power. This also softens the slightly darker line in between the left and right image that no matter how hard I try I can't get rid of.
I took your image and processed two of them overlapping side by side in a few paint programs I have. The result is always the same as what QB64 does, so QB64 is actually blending them properly.