Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Technicolor(clip c, float "contrast")
- {
- contrast = Default(contrast, 1.0)
- red_matte = c.ChannelMixer(100, -50, -50, 100, -50, -50, 100, -50, -50).Invert()
- green_matte = c.ChannelMixer(-50, 100, -50, -50, 100, -50, -50, 100, -50).Invert()
- blue_matte = c.ChannelMixer(-50, -50, 100, -50, -50, 100, -50, -50, 100).Invert()
- new_red = c.Overlay(green_matte, mode="multiply").Overlay(blue_matte, mode="multiply")
- new_green = c.Overlay(red_matte, mode="multiply").Overlay(blue_matte, mode="multiply")
- new_blue = c.Overlay(red_matte, mode="multiply").Overlay(green_matte, mode="multiply")
- return MergeRGB(new_red, new_green, new_blue).ConvertToYUY2(matrix="PC.709").Tweak(cont=contrast, coring=false).ConvertToRGB32(matrix="PC.709")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement