Method: Graphics.fadeout

Defined in:
lib/rgss3/graphics.rb

.fadeout(duration) ⇒ Object



52
53
54
55
56
57
58
59
60
61
# File 'lib/rgss3/graphics.rb', line 52

def self.fadeout(duration)
  # Thread.new {
  #   rate = @brightness / duration.to_f
  #   until @brightness <= 0
  #     self.brightness -= rate
  #     sleep 1.0 / frame_rate
  #   end
  #   self.brightness = 0
  # }
end