Perl 6 interface to the Imlib2 image library.
Branch: master
Clone or download
Pull request Compare This branch is 16 commits ahead of mrhdias:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Modernize Dec 15, 2018
t Remove @*INC from examples. Remove done from .t files and silence som… Jan 23, 2016
.gitignore Update .tarvis and .gitignore and delete old META file Dec 15, 2018
LICENSE the entire project was added Mar 6, 2013
TODO The functions of the group color modifiers were implemented. Apr 12, 2013

Perl 6 Imlib2 Imlib2 Logo

Perl 6 interface to the Imlib2 image library.

Operating System Build Status
Linux Build Status


Perl 6 binding for Imlib2, a featureful and efficient image manipulation library, which produces high quality, anti-aliased output.


Note that a recent version of Imlib2 library must be installed before installing this module.

To install with zef:

zef update
zef install Imlib2


WARNING: This module is Work in Progress, which means: this interface is not final. This will perhaps change in the future.

Below is a sample code:

use Imlib2;

my $im =;
# Create a new raw image.
my $rawimage = $im.create_image(200, 200);
exit() unless $rawimage;

# Sets the current image Imlib2 will be using with its function calls.

# Sets the color with which text, lines and rectangles are drawn when
# being rendered onto an image.
	red   => 255,
	green => 127,
	blue  => 0,
	alpha => 255);

	location => (0, 0),
	size     => (200, 200),
	fill     => True);
unlink("images/test_imlib2.png") if "images/test_imlib2.png".IO ~~ :e;

# Frees the image that is set as the current image in Imlib2's context.



Henrique Dias

See Also


This library is free software; you can redistribute it and/or modify it under the same terms as Perl 6 itself.