Files
veejay/veejay-current/test/examples/fortune.pl
Niels Elburg 97b9901f0b updated scripts to generate VIMS testscripts, deleted obsolete files
git-svn-id: svn://code.dyne.org/veejay/trunk@294 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
2005-04-19 17:51:28 +00:00

23 lines
435 B
Perl

print "310:/usr/local/lib/libvj_drawtext_plugin.so;;";
print "+10\n";
for ( my $m = 0; $m < 200 ; $m ++ )
{
my @text = `/usr/games/fortune|tr -d [:cntrl:]`;
my $lines = join "\n", @text;
my $size = 12 + int(rand(15));
my $y = 10 + int(rand(400));
$lines =~ s/\n/\" \"/g;
$lines =~ s/":"//;
$lines =~ s/"="//;
$lines =~ s/";"//;
print "312:DrawText::text=$lines:size=$size:x=2:y=$y:rand=41;\n";
print "+200\n";
}