{"id":3494312,"name":"github.com/llgcode/draw2d","ecosystem":"go","description":"Package draw2d is a pure go 2D vector graphics library with support\nfor multiple output devices such as images (draw2d), pdf documents\n(draw2dpdf) and opengl (draw2dgl), which can also be used on the\ngoogle app engine. It can be used as a pure go Cairo alternative.\ndraw2d is released under the BSD license.\n\nOperations in draw2d include stroking and filling polygons, arcs,\nBézier curves, drawing images and text rendering with truetype fonts.\nAll drawing operations can be transformed by affine transformations\n(scale, rotation, translation).\n\nPackage draw2d follows the conventions of http://www.w3.org/TR/2dcontext for coordinate system, angles, etc...\n\nTo install or update the package draw2d on your system, run:\n\nPackage draw2d itself provides a graphic context that can draw vector\ngraphics and text on an image canvas. The following Go code\ngenerates a simple drawing and saves it to an image file:\n\nThere are more examples here:\nhttps://github.com/llgcode/draw2d/tree/master/samples\n\nDrawing on pdf documents is provided by the draw2dpdf package.\nDrawing on opengl is provided by the draw2dgl package.\nSee subdirectories at the bottom of this page.\n\nThe samples are run as tests from the root package folder `draw2d` by:\n\nOr if you want to run with test coverage:\n\nThis will generate output by the different backends in the output folder.\n\nLaurent Le Goff wrote this library, inspired by Postscript and\nHTML5 canvas. He implemented the image and opengl backend with the\nfreetype-go package. Also he created a pure go Postscript\ninterpreter, which can read postscript images and draw to a draw2d\ngraphic context (https://github.com/llgcode/ps). Stani Michiels\nimplemented the pdf backend with the gofpdf package.\n\n- https://github.com/llgcode/ps: Postscript interpreter written in Go\n\n- https://github.com/gonum/plot: drawing plots in Go\n\n- https://github.com/muesli/smartcrop: content aware image cropping\n\n- https://github.com/peterhellberg/karta: drawing Voronoi diagrams\n\n- https://github.com/vdobler/chart: basic charts in Go","homepage":"https://github.com/llgcode/draw2d","licenses":"BSD-2-Clause","normalized_licenses":["BSD-2-Clause"],"repository_url":"https://github.com/llgcode/draw2d","keywords_array":[],"namespace":"github.com/llgcode","versions_count":9,"first_release_published_at":"2015-04-29T09:27:59.000Z","latest_release_published_at":"2026-02-13T07:34:09.000Z","latest_release_number":"v0.0.0-20260213073409-1c39bbefe083","last_synced_at":"2026-04-18T18:00:33.367Z","created_at":"2022-04-10T19:23:53.244Z","updated_at":"2026-04-18T18:00:33.367Z","registry_url":"https://pkg.go.dev/github.com/llgcode/draw2d","install_command":"go get github.com/llgcode/draw2d","documentation_url":"https://pkg.go.dev/github.com/llgcode/draw2d#section-documentation","metadata":{},"repo_metadata":{"uuid":"32141743","full_name":"llgcode/draw2d","owner":"llgcode","description":"2D rendering for different output (raster, pdf, svg)","archived":false,"fork":false,"pushed_at":"2021-09-04T07:56:50.000Z","size":10135,"stargazers_count":976,"open_issues_count":38,"forks_count":96,"subscribers_count":28,"default_branch":"master","last_synced_at":"2023-03-13T14:16:10.645Z","etag":null,"topics":["2d","freetype","go","graphics","postscript"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"logo_url":null,"metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-13T08:07:25.000Z","updated_at":"2023-03-08T10:55:06.000Z","dependencies_parsed_at":"2022-07-26T07:17:04.068Z","dependency_job_id":null,"html_url":"https://github.com/llgcode/draw2d","commit_stats":null,"repository_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llgcode%2Fdraw2d","tags_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llgcode%2Fdraw2d/tags","manifests_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llgcode%2Fdraw2d/manifests","owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llgcode","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":108921946,"host_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names"},"owner_record":{"login":"llgcode","name":"llgcode","uuid":"524083","kind":"user","description":"Software Engineer","email":"","website":"https://www.buymeacoffee.com/llgcoffee","location":"Brest","twitter":"llgcode","company":"Dassault Systemes","avatar_url":"https://avatars.githubusercontent.com/u/524083?v=4","repositories_count":7,"last_synced_at":"2023-02-27T22:00:57.127Z","metadata":{"has_sponsors_listing":false},"owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llgcode"},"tags":[{"name":"release","sha":"72ac0e0688945577682843af805078538d3d26a9","kind":"commit","published_at":"2011-09-29T07:55:54.000Z","download_url":"https://codeload.github.com/llgcode/draw2d/tar.gz/release","html_url":"https://github.com/llgcode/draw2d/releases/tag/release"},{"name":"weekly","sha":"1246e79fb6cb3abc320e4f7a5f5451ef73a65de2","kind":"commit","published_at":"2011-09-29T07:55:40.000Z","download_url":"https://codeload.github.com/llgcode/draw2d/tar.gz/weekly","html_url":"https://github.com/llgcode/draw2d/releases/tag/weekly"}]},"repo_metadata_updated_at":"2023-03-21T18:38:22.611Z","dependent_packages_count":230,"downloads":null,"downloads_period":null,"dependent_repos_count":241,"rankings":{"downloads":null,"dependent_repos_count":0.41725973848126585,"dependent_packages_count":0.27357382654776186,"stargazers_count":2.0147150972914427,"forks_count":2.618005189138068,"docker_downloads_count":1.0526938255518161,"average":1.275249535402071},"purl":"pkg:golang/github.com/llgcode/draw2d","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/llgcode/draw2d","docker_dependents_count":5,"docker_downloads_count":1845,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/llgcode/draw2d","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/llgcode/draw2d/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-05-28T23:36:25.874Z","issues_count":68,"pull_requests_count":32,"avg_time_to_close_issue":11222303.31707317,"avg_time_to_close_pull_request":19967499.0,"issues_closed_count":41,"pull_requests_closed_count":32,"pull_request_authors_count":23,"issue_authors_count":51,"avg_comments_per_issue":2.985294117647059,"avg_comments_per_pull_request":2.90625,"merged_pull_requests_count":23,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":2,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":2,"past_year_avg_comments_per_issue":6.0,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fllgcode%2Fdraw2d/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fllgcode%2Fdraw2d/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fllgcode%2Fdraw2d/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fllgcode%2Fdraw2d/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fllgcode%2Fdraw2d/codemeta","maintainers":[]}