• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

GIMP - Adding Transparency Mask to Image

bored

Banned User
Joined
Jan 18, 2018
Messages
3
Reaction score
2
Step by step adding a transparency mask using GIMP

In gimp if you select the color to change, there is a slider labeled V you can change the color of the alpha by adjusting this setting.

But if you are looking for a more programmatic way of adjusting the color you can use this simple method written in lua.
Lua:
function transparencyCalc(percent)
    if percent >= 0 and percent <= 256 then
        return 256 * (percent * .01)
    end
    return 256
end

print(transparencyCalc(50))
-- 128
 
Last edited:
Back
Top