ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/background
(Generate patch)

Comparing rxvt-unicode/src/perl/background (file contents):
Revision 1.75 by root, Fri Aug 10 20:07:11 2012 UTC vs.
Revision 1.80 by sf-exg, Tue Oct 23 21:08:27 2012 UTC

4#:META:X_RESOURCE:%.border:boolean:respect the terminal border 4#:META:X_RESOURCE:%.border:boolean:respect the terminal border
5#:META:X_RESOURCE:%.interval:seconds:minimum time between updates 5#:META:X_RESOURCE:%.interval:seconds:minimum time between updates
6 6
7=head1 NAME 7=head1 NAME
8 8
9 background - manage terminal background 9background - manage terminal background
10 10
11=head1 SYNOPSIS 11=head1 SYNOPSIS
12 12
13 urxvt --background-expr 'background expression' 13 urxvt --background-expr 'background expression'
14 --background-border 14 --background-border
422 for @_; 422 for @_;
423 423
424 $base 424 $base
425 } 425 }
426 426
427=back
428
427=head2 TILING MODES 429=head2 TILING MODES
428 430
429The following operators modify the tiling mode of an image, that is, the 431The following operators modify the tiling mode of an image, that is, the
430way that pixels outside the image area are painted when the image is used. 432way that pixels outside the image area are painted when the image is used.
431 433
533 535
534 move -TX, -TY, keep { load "mybg.png" } 536 move -TX, -TY, keep { load "mybg.png" }
535 537
536=item TW 538=item TW
537 539
540=item TH
541
538Return the width (C<TW>) and height (C<TH>) of the terminal window (the 542Return the width (C<TW>) and height (C<TH>) of the terminal window (the
539terminal window is the full window by default, and the character area only 543terminal window is the full window by default, and the character area only
540when in border-respect mode). 544when in border-respect mode).
541 545
542Using these functions make your expression sensitive to window resizes. 546Using these functions make your expression sensitive to window resizes.
609Clips an image to the given rectangle. If the rectangle is outside the 613Clips an image to the given rectangle. If the rectangle is outside the
610image area (e.g. when C<$x> or C<$y> are negative) or the rectangle is 614image area (e.g. when C<$x> or C<$y> are negative) or the rectangle is
611larger than the image, then the tiling mode defines how the extra pixels 615larger than the image, then the tiling mode defines how the extra pixels
612will be filled. 616will be filled.
613 617
614If C<$x> an C<$y> are missing, then C<0> is assumed for both. 618If C<$x> and C<$y> are missing, then C<0> is assumed for both.
615 619
616If C<$width> and C<$height> are missing, then the window size will be 620If C<$width> and C<$height> are missing, then the window size will be
617assumed. 621assumed.
618 622
619Example: load an image, blur it, and clip it to the window size to save 623Example: load an image, blur it, and clip it to the window size to save
881 $img 885 $img
882 } 886 }
883 887
884=item muladd $mul, $add, $img # EXPERIMENTAL 888=item muladd $mul, $add, $img # EXPERIMENTAL
885 889
886First multipliesthe pixels by C<$mul>, then adds C<$add>. This cna be used 890First multiplies the pixels by C<$mul>, then adds C<$add>. This can be used
887to implement brightness and contrast at the same time, with a wider value 891to implement brightness and contrast at the same time, with a wider value
888range than contrast and brightness operators. 892range than contrast and brightness operators.
889 893
890Due to numerous bugs in XRender implementations, it can also introduce a 894Due to numerous bugs in XRender implementations, it can also introduce a
891number of visual artifacts. 895number of visual artifacts.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines