Script file generated from LiVES

<define>
|1.7
</define>

<name>
gen_text
</name>

<version>
2
</version>

<author>
Salsaman|
</author>

<description>
Generate title frames|Generating title frames|1|0|
</description>

<requires>
convert
</requires>

<params>
text|_Text|string|LiVES|1024|
xoffs|_X offset|num0|0|0|10000|
yoffs|_Y offset|num0|0|0|10000|
fcol|_Fill colour|colRGB24|255|255|255|
scol|_Stroke colour|colRGB24|255|255|255|
psize|_Point size|num0|32|10|120|
bgcol|_Background colour|colRGB24|0|0|0|
nframes|Number of _frames|num0|100|1|100000|
width|Frame _width|num0|640|2|10000|
height|Frame _height|num0|480|2|10000|
font|_Font|string_list|0|Default|AvantGarde-Book|AvantGarde-BookOblique|AvantGarde-Demi|AvantGarde-DemiOblique|Bookman-Demi|Bookman-DemiItalic|Bookman-Light|Bookman-LightItalic|Courier|Courier-Bold|Courier-Oblique|Courier-BoldOblique|Helvetica|Helvetica-Bold|Helvetica-BoldOblique|Helvetica-Narrow|Helvetica-Narrow-Oblique|Helvetica-Narrow-Bold|Helvetica-Narrow-BoldOblique|NewCenturySchlbk-Roman|NewCenturySchlbk-Italic|NewCenturySchlbk-Bold|NewCenturySchlbk-BoldItalic|Palatino-Roman|Palatino-Italic|Palatino-Bold|Palatino-BoldItalic|Times-Roman|Times-Bold|Times-Italic|Times-BoldItalic|Symbol||
</params>

<param_window>
layout|p7|p8|p9|
layout|p1|fill|p2|fill|p5|
</param_window>

<properties>
0x0000
</properties>

<language_code>
0xF0
</language_code>

<pre>
$end=$p7;
$cstring0=&RGB24_to_string($p6_red,$p6_green,$p6_blue);

$tmpimg="temp$img_ext";

`$convert_command -size $p8!x$p9! xc:$cstring0 $tmpimg`;

$p10--;

if ($p10==-1) {
	$font="";
 } elsif ($p10==0) {
   $fo="AvantGarde-Book";
 } elsif ($p10==1) {
  $fo="AvantGarde-BookOblique";
 } elsif ($p10==2) {
   $fo="AvantGarde-Demi";
 } elsif ($p10==3) {
   $fo="AvantGarde-DemiOblique";
 } elsif ($p10==4) {
   $fo="Bookman-Demi";
 } elsif ($p10==5) {
   $fo="Bookman-DemiItalic";
 } elsif ($p10==6) { 
   $fo="Bookman-Light";
 } elsif ($p10==7) {
   $fo="Bookman-LightItalic";
 } elsif ($p10==8) {
   $fo="Courier";
 } elsif ($p10==9) { 
   $fo="Courier-Bold";
 } elsif ($p10==10) {
   $fo="Courier-Oblique";
 } elsif ($p10==11) {
   $fo="Courier-BoldOblique";
 } elsif ($p10==12) { 
   $fo="Helvetica";
 } elsif ($p10==13) { 
   $fo="Helvetica-Bold";
 } elsif ($p10==14) {
   $fo="Helvetica-BoldOblique";
 } elsif ($p10==15) {
   $fo="Helvetica-Narrow";
 } elsif ($p10==16) {
   $fo="Helvetica-Narrow-Oblique";
 } elsif ($p10==17) {
   $fo="Helvetica-Narrow-Bold";
 } elsif ($p10==18) {
   $fo="Helvetica-Narrow-BoldOblique";
 } elsif ($p10==19) {
   $fo="NewCenturySchlbk-Roman";
 } elsif ($p10==20) {
   $fo="NewCenturySchlbk-Italic";
 } elsif ($p10==21) {
   $fo="NewCenturySchlbk-Bold  ";
 } elsif ($p10==22) {
   $fo="NewCenturySchlbk-BoldItalic";
 } elsif ($p10==23) {
   $fo="Palatino-Roman";
 } elsif ($p10==24) { 
   $fo="Palatino-Italic";
 } elsif ($p10==25) { 
   $fo="Palatino-Bold  "; 
 } elsif ($p10==26) {
   $fo="Palatino-BoldItalic";
 } elsif ($p10==27) { 
   $fo="Times-Roman";
 } elsif ($p10==28) { 
   $fo="Times-Bold ";
 } elsif ($p10==29) {
   $fo="Times-Italic";
 } elsif ($p10==30) { 
   $fo="Times-BoldItalic";
 } elsif ($p10==31) { 
   $fo="Symbol";
 }

if ($p10>=0) {
  $font="-font $fo";
}
</pre>

<loop>
$cstring1=&RGB24_to_string($p3_red,$p3_green,$p3_blue);
$cstring2=&RGB24_to_string($p4_red,$p4_green,$p4_blue);

`$convert_command $tmpimg -fill $cstring1 -stroke $cstring2 $font -pointsize $p5 -draw 'text $p1 $p2 \"$p0\"' $out`;

$nwidth=$p8; $nheight=$p9;
</loop>

<post>
unlink $tmping;
</post>

<onchange>
3|$p4_red=$p3_red;$p4_green=$p3_green;$p4_blue=$p3_blue;
init|$p1_max=$p8; $p2_max=$p9;
init|if ($width>0) {$p8=$width}; if ($height>0) {$p9=$height};
8|$p1_max=$p8;
9|$p2_max=$p9;
</onchange>

