Advertisement
Guest User

3-strip Technicolor!

a guest
Sep 23rd, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Technicolor(clip c, float "contrast")
  2. {
  3.   contrast = Default(contrast, 1.0)
  4.   red_matte   = c.ChannelMixer(100, -50, -50, 100, -50, -50, 100, -50, -50).Invert()
  5.   green_matte = c.ChannelMixer(-50, 100, -50, -50, 100, -50, -50, 100, -50).Invert()
  6.   blue_matte  = c.ChannelMixer(-50, -50, 100, -50, -50, 100, -50, -50, 100).Invert()
  7.   red   = c.Overlay(green_matte, mode="multiply").Overlay(blue_matte, mode="multiply")
  8.   green = c.Overlay(red_matte, mode="multiply").Overlay(blue_matte, mode="multiply")
  9.   blue  = c.Overlay(red_matte, mode="multiply").Overlay(green_matte, mode="multiply")
  10.   return MergeRGB(red, green, blue).ConvertToYUY2(matrix="rec709").Tweak(cont=contrast).ConvertToRGB32(matrix="rec709")
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement