A NativeCall binding to the Cairo 2d graphics library for Perl 6
Perl6
Switch branches/tags
Nothing to show
Latest commit bbc51d6 Jun 20, 2017 @dwarring dwarring add surface flush method
Permalink
Failed to load latest commit information.
examples refactor recently added matrix classes Jun 15, 2017
lib add surface flush method Jun 20, 2017
t refactor recently added matrix classes Jun 15, 2017
.gitignore
.travis.yml no longer use panda in travis file May 24, 2017
META6.json unbreak META Jun 19, 2017
Readme.md finish off examples May 31, 2017

Readme.md

Cairo 2D Graphics library binding for Perl 6

Synopsis

use Cairo;
given Cairo::Image.create(Cairo::FORMAT_ARGB32, 128, 128) {
    given Cairo::Context.new($_) {
        .rgb(0, 0.7, 0.9);
        .rectangle(10, 10, 50, 50);
        .fill :preserve; .rgb(1, 1, 1);
        .stroke
    };
    .write_png("foobar.png")
}

Please see the examples folder.