-
-
14 May 2014 21:59:06 UTC
- Browse (raw)
- Changes
- How to Contribute
- Issues (0)
- Testers (0 / 1 / 0)
- Kwalitee
Bus factor: 0- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (95.41KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- File::Find
- Getopt::Long
- Image::Magick
- Module::Pluggable
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Changes for version 0.10
- generate fake CSS stylesheets
- added rounding in get_layout_ascii_string (to have more precise layouts)
Modules
Combine several images into a single CSS spriteLayout interface for items placed on a 2D grid.my $DirectoryBasedLayout = CSS::SpriteMaker::Layout::DirectoryBased->new( { "1" => { width => 128, height => 128, pathname => '/full/path/to/file1.png', parentdir => '/full/path/to', }, ... } );my $FixedDimensionLayout = CSS::SpriteMaker::Layout::FixedDimension->new( # example $rh_item_info input structure { "1" => { width => 128, height => 128, }, ... }, # max 10 items on the same row, { dimension => 'horizontal', n => 10 }, );Layout items trying to minimize the size of the resulting file.A node of the Packed LayoutModule Install Instructions
To install CSS::SpriteMaker, copy and paste the appropriate command in to your terminal.
cpanm CSS::SpriteMaker
perl -MCPAN -e shell install CSS::SpriteMaker
For more information on module installation, please visit the detailed CPAN module installation guide.