Page 1 of 1

alpha and linear in transform delayed_blink() function

Posted: Wed Aug 08, 2018 12:21 pm
by tofuuu
Can anyone explain to me what is alpha and linear?

Code: Select all

transform delayed_blink(delay, cycle):
    alpha .5
    pause delay
and also the meaning of code in block?

Code: Select all

    block:
        linear .2 alpha 1.0
        pause .2
        linear .2 alpha 0.5
        pause (cycle - .4)
        repeat
Thank you, i'm sorry for asking so many questions :(

Re: alpha and linear in transform delayed_blink() function

Posted: Thu Aug 09, 2018 2:09 am
by vollschauer
Alpha is basically the opacity of the displayable. And https://easings.net/ helps you to understand what linear means,
actually everything is well explained here: https://www.renpy.org/doc/html/atl.html?highlight=atl

Re: alpha and linear in transform delayed_blink() function

Posted: Sun Aug 19, 2018 7:20 pm
by tofuuu
Thank your for answering!