cairo
cairo-cr
Cairo bindings for Crystal language.
Installation
First install cairo:
sudo apt-get install libcairo2 libcairo2-dev
Add this to your application's shard.yml
:
dependencies:
x11:
github: TamasSzekeres/x11-cr
branch: master
cairo:
github: TamasSzekeres/cairo-cr
branch: master
Then run in terminal:
crystal deps
Usage
require "x11"
require "cairo"
module YourModule
include X11
include CairoCr
end
For more details see the sample in /sample folder.
Sample
Build and run the sample:
mkdir bin
crystal build -o bin/sample sample/simple_window.cr --release
./bin/sample
Contributing
- Fork it ( https://github.com/TamasSzekeres/cairo-cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- TamasSzekeres Tamás Szekeres - creator, maintainer