| 1 | package Khonsu::Shape::Box; | ||||||||||
| 2 | |||||||||||
| 3 | 3 | ▶ | use parent 'Khonsu::Shape'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | sub shape { | ||||||||||
| 6 | 124 | ▶ | my ($self, $file, $shape, %args) = @_; | ||||||||
|
Subroutine
shape: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||
| 7 | 124 | my $box = $shape->rect($args{x}, $file->page->h - ($args{y} + $args{h}), $args{w}, $args{h}); | |||||||||
| 8 | 124 | ▶ | $box->fillcolor($args{fill_colour}) unless $args{fill_colour} eq 'transparent'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 9 | 124 | $box->fill; | |||||||||
| 10 | } | ||||||||||
| 11 | |||||||||||
| 12 | 3 | 1; | |||||||||