#--------------------------------------------------------------------------
# ● 更新色调
#--------------------------------------------------------------------------
def update_tone
if @tone_duration > 0
d = @tone_duration
@tone.red = (@tone.red * (d - 1) + @tone_target.red) / d
@tone.green = (@tone.green * (d - 1) + @tone_target.green) / d
@tone.blue = (@tone.blue * (d - 1) + @tone_target.blue) / d
@tone.gray = (@tone.gray * (d - 1) + @tone_target.gray) / d
@tone_duration -= 1
$game_variables[23]=200+(@tone.red*3+@tone.green*[email]2-@tone.blue[/email])/2 #计算阴影不透明度
if $game_variables[23] > 255
$game_variables[23]=255
elsif $game_variables[23] < 0
$game_variables[23]=0
end
end
end
#--------------------------------------------------------------------------
# ● 更新色调
#--------------------------------------------------------------------------
def update_tone
if @tone_duration > 0
d = @tone_duration
@tone.red = (@tone.red * (d - 1) + @tone_target.red) / d
@tone.green = (@tone.green * (d - 1) + @tone_target.green) / d
@tone.blue = (@tone.blue * (d - 1) + @tone_target.blue) / d
@tone.gray = (@tone.gray * (d - 1) + @tone_target.gray) / d
@tone_duration -= 1
$game_variables[23]=200+(@tone.red*3+@tone.green*[email]2-@tone.blue[/email])/2 #计算阴影不透明度
if $game_variables[23] > 255
$game_variables[23]=255
elsif $game_variables[23] < 0
$game_variables[23]=0
end
end
end