This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
fade_out [2017/04/13 15:23] – justin | fade_out [2021/04/21 18:30] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Fade to black over the specified duration (in seconds). [[fade_in|Fade In]] will typically be called at some point after this function. | + | Fades to black over the specified duration |
+ | ====Signature: | ||
<code python> | <code python> | ||
fade_out(duration) | fade_out(duration) | ||
Line 9: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |duration|Description.|[[String]]|Yes| | + | |duration|Length of fade (in seconds).|[[Number]]|Yes| |
====Example: | ====Example: | ||
- | < | + | < |
- | fade_out(1) | + | fade_out(1); |
</ | </ | ||
// | // | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Fade Out** function | + | Use the **Fade Out** and **Fade In** functions |
</ | </ | ||