/ Published in: Ruby

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Animates the window fade-out in 0.5 second. def fadeOutWindow(windowOutlet) x = 0 while x < 10 windowOutlet.setAlphaValue(windowOutlet.alphaValue - 0.1) x += 1 sleep(0.05) end end
Comments
