… | |
… | |
252 | If C<$width> and C<$height> are omitted, it creates a 1x1 image, which is |
252 | If C<$width> and C<$height> are omitted, it creates a 1x1 image, which is |
253 | useful for solid backgrounds or for use in filtering effects. |
253 | useful for solid backgrounds or for use in filtering effects. |
254 | |
254 | |
255 | =cut |
255 | =cut |
256 | |
256 | |
257 | sub solid($$;$) { |
257 | sub solid($;$$) { |
258 | my $colour = pop; |
258 | my $colour = pop; |
259 | |
259 | |
260 | my $img = $self->new_img (urxvt::PictStandardARGB32, $_[0] || 1, $_[1] || 1); |
260 | my $img = $self->new_img (urxvt::PictStandardARGB32, $_[0] || 1, $_[1] || 1); |
261 | $img->fill ($colour); |
261 | $img->fill ($colour); |
262 | $img |
262 | $img |