Project

General

Profile

Actions

Bug #812

closed

Alpha makes images re-appear if slightly below 0.0

Added by Paul Kitching over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
08/18/2021
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

This should fade the bob, but when it gets to 0 it re-appears as full alpha:

#splashScreen:False
curs off:flash off
for x=1 to 50
    ink x
    bar rnd(50),rnd(50),10,10
next x
get image 1,0,0,50,50
ba#=1.0
do
    if ba#>0 then add ba#,-0.01
    bob 1,100,100,1
    bob alpha 1,ba#
    wait vbl
loop
end

I have to always do things like this line below to stop them appearing again:
if ba#<0 then ba#=0

Actions

Also available in: Atom PDF