<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://avisynth.nl/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=Tint</id>
		<title>Tint - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=Tint"/>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=Tint&amp;action=history"/>
		<updated>2026-04-07T15:01:26Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.24</generator>

	<entry>
		<id>http://avisynth.nl/index.php?title=Tint&amp;diff=5795&amp;oldid=prev</id>
		<title>Reel.Deal: minor things</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=Tint&amp;diff=5795&amp;oldid=prev"/>
				<updated>2015-07-27T15:39:14Z</updated>
		
		<summary type="html">&lt;p&gt;minor things&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:39, 27 July 2015&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Notes: ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Notes: ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Due to Overlay's unpredictable behavior in RGB, this filter will only work with YUY2 and YV12 content. For RGB colour correction or grading, use RGBAdjust ()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Due to Overlay's unpredictable behavior in RGB, this filter will only work with YUY2 and YV12 content. For RGB colour correction or grading, use &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;RGBAdjust&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The color is expressed in hexadecimal. Check the colors_rgb.avsi file in the plugins folder for some common colours.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The color is expressed in hexadecimal. Check the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Color_presets|&lt;/ins&gt;colors_rgb.avsi&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/ins&gt;file in the plugins folder for some common colours.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:External filters]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:External filters]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Reel.Deal</name></author>	</entry>

	<entry>
		<id>http://avisynth.nl/index.php?title=Tint&amp;diff=1370&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=Tint&amp;diff=1370&amp;oldid=prev"/>
				<updated>2013-05-19T22:03:49Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:03, 19 May 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://avisynth.nl/index.php?title=Tint&amp;diff=1369&amp;oldid=prev</id>
		<title>Wilbert: /* Example: */</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=Tint&amp;diff=1369&amp;oldid=prev"/>
				<updated>2013-05-18T21:38:44Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Example:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;by actionman133&lt;br /&gt;
&lt;br /&gt;
Tint () is designed to be a useful colour filter to be implemented for colour grading or correction in AVISynth. If you apply this function at full strengh (255) to a greyscale clip, you can create interesting colorizing effects.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Function Tint (clip Last, int color, int &amp;quot;strength&amp;quot;) {&lt;br /&gt;
&lt;br /&gt;
strength = Default (strength, 128)&lt;br /&gt;
hue = BlankClip (last, color = color, pixel_type = &amp;quot;YV12&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
# get chroma on new tint&lt;br /&gt;
uhue = hue.UtoY ()&lt;br /&gt;
vhue = hue.VtoY ()&lt;br /&gt;
&lt;br /&gt;
u = UtoY ()&lt;br /&gt;
v = VtoY ()&lt;br /&gt;
&lt;br /&gt;
#set up mask. Assumes 0-255 RGB and 16-235 YUV.&lt;br /&gt;
mask = GreyScale ()&lt;br /&gt;
mask = mask.isYUV () ? mask.ColorYUV (levels = &amp;quot;tv-&amp;gt;pc&amp;quot;) : mask&lt;br /&gt;
&lt;br /&gt;
# mask 1 reduces chroma impact in shadows&lt;br /&gt;
# mask 2 reduces chroma in highlights&lt;br /&gt;
mask1 = mask.Levels (0, 1, 127, 0, 255, false)&lt;br /&gt;
mask2 = mask.Levels (128, 1, 255, 255, 0, false)&lt;br /&gt;
maskmask = mask.Levels (127, 1, 128, 0, 255, false)&lt;br /&gt;
mask = Overlay (mask1, mask2, mask = maskmask).Levels (0, 1, 255, 0, strength, false)&lt;br /&gt;
mask =	isYUY2 () ? mask.BilinearResize (Width/2, Height) : \&lt;br /&gt;
	isYV12 () ? mask.BilinearResize (Width/2, Height/2) : mask&lt;br /&gt;
# mask combines the two masks and resizes to match chroma&lt;br /&gt;
&lt;br /&gt;
# apply tints to the chroma channels&lt;br /&gt;
u1 = Overlay (u, uhue, mode = &amp;quot;luma&amp;quot;, mask = mask)&lt;br /&gt;
v1 = Overlay (v, vhue, mode = &amp;quot;luma&amp;quot;, mask = mask)&lt;br /&gt;
&lt;br /&gt;
# mix new chroma into&lt;br /&gt;
YtoUV (u1, v1, last)&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example: ===&lt;br /&gt;
&lt;br /&gt;
 Tint ($FF7F00, 64) # warm tint for a late afternoon look.&lt;br /&gt;
&lt;br /&gt;
=== Notes: ===&lt;br /&gt;
&lt;br /&gt;
Due to Overlay's unpredictable behavior in RGB, this filter will only work with YUY2 and YV12 content. For RGB colour correction or grading, use RGBAdjust ()&lt;br /&gt;
&lt;br /&gt;
The color is expressed in hexadecimal. Check the colors_rgb.avsi file in the plugins folder for some common colours.&lt;br /&gt;
&lt;br /&gt;
[[Category:External filters]]&lt;/div&gt;</summary>
		<author><name>Wilbert</name></author>	</entry>

	</feed>