Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- replaceframessimple( mt_merge( spline36resize(width/2,height/2).eedi3_rpow2(2,alpha=0.5,cshift="spline64resize"),
- \mask_2color_edge($a80130,$4c0222), true), mappings="[11111 22222]")
- function mask_2color_edge(clip c, int color1, int color2, int "tolerance1", int "tolerance2", int "overlap")
- {
- tolerance1=default(tolerance1,10)
- tolerance2=default(tolerance2,10)
- overlap=default(overlap,6)
- c.converttorgb
- colorkeymask(color1,tolerance1).showalpha("yv12").mt_inpand_multi(sw=overlap,sh=overlap)
- \.mt_logic(colorkeymask(color2,tolerance2).showalpha("yv12").mt_inpand_multi(sw=overlap,sh=overlap),"or")
- \.mt_invert.removegrain(4,-1)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement