{"id":21408677,"url":"https://github.com/raku-community-modules/gd","last_synced_at":"2025-07-14T01:30:44.114Z","repository":{"id":22357189,"uuid":"25693232","full_name":"raku-community-modules/GD","owner":"raku-community-modules","description":"Raku interface to the Gd graphics library.","archived":false,"fork":false,"pushed_at":"2021-01-28T22:11:33.000Z","size":62,"stargazers_count":2,"open_issues_count":6,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2023-03-11T05:07:37.523Z","etag":null,"topics":["gd","gif","graphics","png","raku"],"latest_commit_sha":null,"homepage":"","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raku-community-modules.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-24T14:51:24.000Z","updated_at":"2023-03-11T05:07:37.523Z","dependencies_parsed_at":"2022-08-21T03:30:44.634Z","dependency_job_id":null,"html_url":"https://github.com/raku-community-modules/GD","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FGD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FGD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FGD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FGD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raku-community-modules","download_url":"https://codeload.github.com/raku-community-modules/GD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225934413,"owners_count":17547740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gd","gif","graphics","png","raku"],"created_at":"2024-11-22T17:17:49.526Z","updated_at":"2024-11-22T17:17:51.412Z","avatar_url":"https://github.com/raku-community-modules.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/raku-community-modules/raku-GD.svg)](https://travis-ci.org/raku-community-modules/raku-GD)\n\nraku-GD\n========\n\n![GD Logo](logotype/logo_32x32.png)  \nRaku interface to the Gd graphics library.\n\nDescription\n-----------\nRaku interface to Thomas Boutell's [gd graphics library][2]. GD allows you to create color drawings using a large number of graphics primitives, and emit the drawings in multiple formats.\nYou will need the Linux `gd-libgd` library or OS X `gd2` port installed in order to use raku-GD (preferably a recent version).\n\nSynopsis\n--------\n\nWARNING: This module is Work in Progress, which means: this interface is not final. This will perhaps change in the future.  \nA sample of the code can be seen below.\n\n\tuse GD;\n\n\tif GD::Image.new(200, 200) -\u003e $image {\n\n      my $black = $image.colorAllocate(\n         red   =\u003e 0,\n         green =\u003e 0,\n         blue  =\u003e 0);\n\n      my $white = $image.colorAllocate(\n         red   =\u003e 255,\n         green =\u003e 255,\n         blue  =\u003e 255);\n\n      my $red = $image.colorAllocate(\"#ff0000\");\n      my $green = $image.colorAllocate(\"#00ff00\");\n      my $blue = $image.colorAllocate(0x0000ff);\n\n      $image.rectangle(\n         location =\u003e (10, 10),\n         size     =\u003e (100, 100),\n         fill     =\u003e True,\n         color    =\u003e $white);\n\n      $image.line(\n         start =\u003e (10, 10),\n         end   =\u003e (190, 190),\n         color =\u003e $black);\n\n      my $png_fh = $image.open(\"test.png\", \"wb\");\n\n      $image.output($png_fh, GD_PNG);\n\n      $png_fh.close;\n\n      $image.destroy();\n   }\n\n\nInstallation\n------------\n\nAssuming you have a working Rakudo install (and you have the GD library installed as described above,) you should be able to do:\n\n    zef install GD\n\nOr if you have a local copy of this repository:\n\n    zef install .\n\n\nSupport\n-------\n\nPlease report any bugs or send any patches on [Github](https://github.com/raku-community-modules/raku-GD/issues)\n\n\nAuthors\n------\n\nHenrique Dias\nRaku Community Module Authors\n\nSee Also\n--------\n* [GD Raku Module Documentation][1]  \n* [GD Source Repository][2]\n* [C examples from GD source repository][3]\n\nLicense\n-------\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.\n\nPlease see the [LICENCE](LICENCE) in the source directory for full details.\n\n[1]: lib/GD.pod \"GD Perl6 Module Documentation\"\n[2]: https://bitbucket.org/pierrejoye/gd-libgd \"GD Source Repository\"\n[3]: https://bitbucket.org/pierrejoye/gd-libgd/src/2b8f5d19e0c9/examples \"C examples from GD source repository\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraku-community-modules%2Fgd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraku-community-modules%2Fgd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraku-community-modules%2Fgd/lists"}