{"id":13740519,"url":"https://github.com/go-p5/p5","last_synced_at":"2025-05-08T20:31:42.792Z","repository":{"id":39858535,"uuid":"306651672","full_name":"go-p5/p5","owner":"go-p5","description":"p5 is a simple package that provides primitives resembling the ones exposed by p5js.org","archived":false,"fork":false,"pushed_at":"2024-01-02T21:43:11.000Z","size":1650,"stargazers_count":140,"open_issues_count":9,"forks_count":12,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-05-22T12:32:00.945Z","etag":null,"topics":["go","golang","p5"],"latest_commit_sha":null,"homepage":"https://go-p5.github.io/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-p5.png","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,"governance":null,"roadmap":null,"authors":"AUTHORS"}},"created_at":"2020-10-23T13:51:54.000Z","updated_at":"2024-05-14T12:56:41.000Z","dependencies_parsed_at":"2024-01-13T01:26:28.345Z","dependency_job_id":"e6a3c4d1-36fa-4204-9cfa-d0849ed3cbd9","html_url":"https://github.com/go-p5/p5","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-p5%2Fp5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-p5%2Fp5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-p5%2Fp5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-p5%2Fp5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-p5","download_url":"https://codeload.github.com/go-p5/p5/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253144801,"owners_count":21861125,"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":["go","golang","p5"],"created_at":"2024-08-03T04:00:49.017Z","updated_at":"2025-05-08T20:31:42.307Z","avatar_url":"https://github.com/go-p5.png","language":"Go","funding_links":[],"categories":["Gio Core"],"sub_categories":["Community Libraries"],"readme":"# p5\n\n[![GitHub release](https://img.shields.io/github/release/go-p5/p5.svg)](https://github.com/go-p5/p5/releases)\n[![go.dev reference](https://pkg.go.dev/badge/github.com/go-p5/p5)](https://pkg.go.dev/github.com/go-p5/p5)\n[![CI](https://github.com/go-p5/p5/workflows/CI/badge.svg)](https://github.com/go-p5/p5/actions)\n[![GoDoc](https://godoc.org/github.com/go-p5/p5?status.svg)](https://godoc.org/github.com/go-p5/p5)\n[![License](https://img.shields.io/badge/License-BSD--3-blue.svg)](https://github.com/go-p5/p5/blob/main/LICENSE)\n[![codecov](https://codecov.io/gh/go-p5/p5/branch/main/graph/badge.svg)](https://codecov.io/gh/go-p5/p5)\n\n`p5` is a simple package that provides primitives resembling the ones exposed by the [p5/processing](https://p5js.org) library.\n\n## License\n\n`p5` is released under the `BSD-3` license.\n\n## Documentation\n\nDocumentation for `p5` is served by [GoDev](https://pkg.go.dev/github.com/go-p5/p5).\n\n## Contributing\n\nGuidelines for contributing to [go-p5](https://github.com/go-p5/p5) the same than for the [Go project](https://golang.org/doc/contribute.html#commit_changes).\n\n## Installation\n\nThis project relies on [Gio](https://gioui.org) for the graphics parts.\nAs `Gio` uses system libraries to display graphics, you need to install those for your system/OS for `p5` to work properly.\nSee [Gio/install](https://gioui.org/doc/install) for details.\n\n## Example\n\n[embedmd]:# (example/hello/main.go go /package main/ $)\n```go\npackage main\n\nimport (\n\t\"image/color\"\n\t\"math\"\n\n\t\"github.com/go-p5/p5\"\n)\n\nfunc main() {\n\tp5.Run(setup, draw)\n}\n\nfunc setup() {\n\tp5.Canvas(400, 400)\n\tp5.Background(color.Gray{Y: 220})\n}\n\nfunc draw() {\n\tp5.StrokeWidth(2)\n\tp5.Fill(color.RGBA{R: 255, A: 208})\n\tp5.Ellipse(50, 50, 80, 80)\n\n\tp5.Fill(color.RGBA{B: 255, A: 208})\n\tp5.Quad(50, 50, 80, 50, 80, 120, 60, 120)\n\n\tp5.Fill(color.RGBA{G: 255, A: 208})\n\tp5.Rect(200, 200, 50, 100)\n\n\tp5.Fill(color.RGBA{G: 255, A: 208})\n\tp5.Triangle(100, 100, 120, 120, 80, 120)\n\n\tp5.TextSize(24)\n\tp5.Text(\"Hello, World!\", 10, 300)\n\n\tp5.Stroke(color.Black)\n\tp5.StrokeWidth(5)\n\tp5.Arc(300, 100, 80, 20, 0, 1.5*math.Pi)\n}\n```\n\n![img-hello](https://github.com/go-p5/p5/raw/main/example/hello/out.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-p5%2Fp5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-p5%2Fp5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-p5%2Fp5/lists"}