--- rxvt-unicode/src/perl/background 2012/08/10 20:07:11 1.75 +++ rxvt-unicode/src/perl/background 2013/01/19 10:04:34 1.82 @@ -6,7 +6,7 @@ =head1 NAME - background - manage terminal background +background - manage terminal background =head1 SYNOPSIS @@ -424,6 +424,8 @@ $base } +=back + =head2 TILING MODES The following operators modify the tiling mode of an image, that is, the @@ -535,6 +537,8 @@ =item TW +=item TH + Return the width (C) and height (C) of the terminal window (the terminal window is the full window by default, and the character area only when in border-respect mode). @@ -611,7 +615,7 @@ larger than the image, then the tiling mode defines how the extra pixels will be filled. -If C<$x> an C<$y> are missing, then C<0> is assumed for both. +If C<$x> and C<$y> are missing, then C<0> is assumed for both. If C<$width> and C<$height> are missing, then the window size will be assumed. @@ -639,7 +643,7 @@ Scales the image by the given factors in horizontal (C<$width>) and vertical (C<$height>) direction. -If only one factor is give, it is used for both directions. +If only one factor is given, it is used for both directions. If no factors are given, scales the image to the window size without keeping aspect. @@ -774,7 +778,7 @@ Rotates the image clockwise by C<$degrees> degrees, around the point at C<$center_x> and C<$center_y> (specified as factor of image width/height). -Example: rotate the image by 90 degrees around it's center. +Example: rotate the image by 90 degrees around its center. rotate 0.5, 0.5, 90, keep { load "$HOME/mybg.png" } @@ -815,6 +819,16 @@ $_[1]->tint ($_[0]) } +=item shade $factor, $img + +Shade the image by the given factor. + +=cut + + sub shade($$) { + $_[1]->shade ($_[0]) + } + =item contrast $factor, $img =item contrast $r, $g, $b, $img @@ -883,7 +897,7 @@ =item muladd $mul, $add, $img # EXPERIMENTAL -First multipliesthe pixels by C<$mul>, then adds C<$add>. This cna be used +First multiplies the pixels by C<$mul>, then adds C<$add>. This can be used to implement brightness and contrast at the same time, with a wider value range than contrast and brightness operators.