<?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/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=F00P</id>
		<title>Avisynth wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://avisynth.nl/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=F00P"/>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php/Special:Contributions/F00P"/>
		<updated>2026-04-08T01:48:00Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.19.24</generator>

	<entry>
		<id>http://avisynth.nl/index.php/VScrollTitle</id>
		<title>VScrollTitle</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php/VScrollTitle"/>
				<updated>2019-05-31T20:07:02Z</updated>
		
		<summary type="html">&lt;p&gt;F00P: Fix timing in example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hope you find this useful. If you want scrolling 'credits' you'll need to set the start frames&lt;br /&gt;
&lt;br /&gt;
manually for each row of text. Note that these are all centered by default.&lt;br /&gt;
&lt;br /&gt;
    #----------------------------------------------------------------------#&lt;br /&gt;
    # VScrollTitle                                                         #&lt;br /&gt;
    #----------------------------------------------------------------------#&lt;br /&gt;
    # V0.0                                                                 #&lt;br /&gt;
    #                                                                      #&lt;br /&gt;
    # Insert a subtitle that scrolls from (below) the bottom to (above)    #&lt;br /&gt;
    # the top of the frame. The total time for the scroll is given in      #&lt;br /&gt;
    # seconds in parameter &amp;quot;Time&amp;quot;                                          #&lt;br /&gt;
    #----------------------------------------------------------------------#&lt;br /&gt;
    function VScrollTitle( clip    Clop, \&lt;br /&gt;
                           int     StartFrame, \&lt;br /&gt;
                           string  Title, \&lt;br /&gt;
                           string  Font, \&lt;br /&gt;
                           int     FontSize, \&lt;br /&gt;
                           int     Colour, \&lt;br /&gt;
                           int     Time ) {&lt;br /&gt;
 &lt;br /&gt;
        ef = StartFrame + int( Time * Clop.FrameRate )&lt;br /&gt;
        return Animate( Clop, StartFrame, ef, &amp;quot;subtitle&amp;quot;,\&lt;br /&gt;
        Title, Clop.width/2, int(Clop.Height*1.2), StartFrame, ef, Font, FontSize, Colour, 0, 5, 0, -1,\&lt;br /&gt;
        Title, Clop.width/2,                    0, StartFrame, ef, Font, FontSize, Colour, 0, 5, 0, -1)&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
Example application. This was written for a 25fps avi - start frames may need to be adjusted for another frame rate, but the scroll time will stay at 5 seconds.&lt;br /&gt;
&lt;br /&gt;
 clip = AVISource(&amp;quot;blah.avi&amp;quot;)&lt;br /&gt;
 sf = 50&lt;br /&gt;
 clip = clip.VScrollTitle( sf, &amp;quot;The End&amp;quot;, &amp;quot;Uncial&amp;quot;, 48, $ffffff, 5 )&lt;br /&gt;
 clip = clip.VScrollTitle( sf+15, &amp;quot;Directed by&amp;quot;, &amp;quot;Arial&amp;quot;, 14, $ffffff, 5 )&lt;br /&gt;
 clip = clip.VScrollTitle( sf+24, &amp;quot;nkotb&amp;quot;, &amp;quot;Arial&amp;quot;, 24, $ffffff, 5 )&lt;br /&gt;
 clip = clip.VScrollTitle( sf+40, &amp;quot;Produced by&amp;quot;, &amp;quot;Arial&amp;quot;, 14, $ffffff, 5 )&lt;br /&gt;
 clip = clip.VScrollTitle( sf+49, &amp;quot;nkotb&amp;quot;, &amp;quot;Arial&amp;quot;, 24, $ffffff, 5 )&lt;br /&gt;
 clip = clip.VScrollTitle( sf+55, &amp;quot;Multi\nline\ntext&amp;quot;, &amp;quot;Arial&amp;quot;, 24, $ffffff, 5 )&lt;br /&gt;
 return clip&lt;br /&gt;
&lt;br /&gt;
If you change the font / size the start frames will need tweaking.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shared functions]]&lt;/div&gt;</summary>
		<author><name>F00P</name></author>	</entry>

	<entry>
		<id>http://avisynth.nl/index.php/VScrollTitle</id>
		<title>VScrollTitle</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php/VScrollTitle"/>
				<updated>2019-05-31T20:06:21Z</updated>
		
		<summary type="html">&lt;p&gt;F00P: Added ability to insert multi-line text&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hope you find this useful. If you want scrolling 'credits' you'll need to set the start frames&lt;br /&gt;
&lt;br /&gt;
manually for each row of text. Note that these are all centered by default.&lt;br /&gt;
&lt;br /&gt;
    #----------------------------------------------------------------------#&lt;br /&gt;
    # VScrollTitle                                                         #&lt;br /&gt;
    #----------------------------------------------------------------------#&lt;br /&gt;
    # V0.0                                                                 #&lt;br /&gt;
    #                                                                      #&lt;br /&gt;
    # Insert a subtitle that scrolls from (below) the bottom to (above)    #&lt;br /&gt;
    # the top of the frame. The total time for the scroll is given in      #&lt;br /&gt;
    # seconds in parameter &amp;quot;Time&amp;quot;                                          #&lt;br /&gt;
    #----------------------------------------------------------------------#&lt;br /&gt;
    function VScrollTitle( clip    Clop, \&lt;br /&gt;
                           int     StartFrame, \&lt;br /&gt;
                           string  Title, \&lt;br /&gt;
                           string  Font, \&lt;br /&gt;
                           int     FontSize, \&lt;br /&gt;
                           int     Colour, \&lt;br /&gt;
                           int     Time ) {&lt;br /&gt;
 &lt;br /&gt;
        ef = StartFrame + int( Time * Clop.FrameRate )&lt;br /&gt;
        return Animate( Clop, StartFrame, ef, &amp;quot;subtitle&amp;quot;,\&lt;br /&gt;
        Title, Clop.width/2, int(Clop.Height*1.2), StartFrame, ef, Font, FontSize, Colour, 0, 5, 0, -1,\&lt;br /&gt;
        Title, Clop.width/2,                    0, StartFrame, ef, Font, FontSize, Colour, 0, 5, 0, -1)&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
Example application. This was written for a 25fps avi - start frames may need to be adjusted for another frame rate, but the scroll time will stay at 5 seconds.&lt;br /&gt;
&lt;br /&gt;
 clip = AVISource(&amp;quot;blah.avi&amp;quot;)&lt;br /&gt;
 sf = 50&lt;br /&gt;
 clip = clip.VScrollTitle( sf, &amp;quot;The End&amp;quot;, &amp;quot;Uncial&amp;quot;, 48, $ffffff, 5 )&lt;br /&gt;
 clip = clip.VScrollTitle( sf+15, &amp;quot;Directed by&amp;quot;, &amp;quot;Arial&amp;quot;, 14, $ffffff, 5 )&lt;br /&gt;
 clip = clip.VScrollTitle( sf+24, &amp;quot;nkotb&amp;quot;, &amp;quot;Arial&amp;quot;, 24, $ffffff, 5 )&lt;br /&gt;
 clip = clip.VScrollTitle( sf+40, &amp;quot;Produced by&amp;quot;, &amp;quot;Arial&amp;quot;, 14, $ffffff, 5 )&lt;br /&gt;
 clip = clip.VScrollTitle( sf+49, &amp;quot;nkotb&amp;quot;, &amp;quot;Arial&amp;quot;, 24, $ffffff, 5 )&lt;br /&gt;
 clip = clip.VScrollTitle( sf+49, &amp;quot;Multi\nline\ntext&amp;quot;, &amp;quot;Arial&amp;quot;, 24, $ffffff, 5 )&lt;br /&gt;
 return clip&lt;br /&gt;
&lt;br /&gt;
If you change the font / size the start frames will need tweaking.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shared functions]]&lt;/div&gt;</summary>
		<author><name>F00P</name></author>	</entry>

	</feed>