Algorithm-BinPack-2D
view release on metacpan or search on metacpan
lib/Algorithm/BinPack/2D.pm view on Meta::CPAN
and is required.
my $bp = Algorithm::BinPack::2D->new(binwidth => 512, binheight => 512);
=cut
sub new {
my $name = shift;
my $self = {@_};
bless $self, $name;
}
=item add_item
Adds an item to be packed into a bin.
Required named arguments are 'label', 'width' and 'height',
but any others can be specified, and will be saved.
$bp->add_item(label => 'one', width => 1, height => 1);
( run in 0.324 second using v1.01-cache-2.11-cpan-de7293f3b23 )