mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-24 21:12:50 +01:00
22 lines
798 B
Lua
22 lines
798 B
Lua
|
|
-------------------------------------------------------- Libraries --------------------------------------------------------
|
|
|
|
local buffer = require("doubleBuffering")
|
|
local postProcessing = {}
|
|
|
|
-------------------------------------------------------- Plane object --------------------------------------------------------
|
|
|
|
function postProcessing.photofilter(color, transparency)
|
|
buffer.clear(color, transparency)
|
|
end
|
|
|
|
function postProcessing.fadePhotifilter(color, fromTransparency, toTransparency, step)
|
|
for i = fromTransparency, toTransparency, fromTransparency < toTransparency and step or -step do
|
|
postProcessing.photofilter(color, i)
|
|
end
|
|
end
|
|
|
|
-------------------------------------------------------- Zalupa --------------------------------------------------------
|
|
|
|
return postProcessing
|