{"id":18668708,"url":"https://github.com/franeklubi/tie","last_synced_at":"2025-04-12T00:23:56.556Z","repository":{"id":57552446,"uuid":"161319564","full_name":"franeklubi/tie","owner":"franeklubi","description":"Package franeklubi/tie provides a Processing-like API for simple and fun drawing, game making, data and algorithm visualization, and generally - art :)","archived":false,"fork":false,"pushed_at":"2018-12-11T20:46:23.000Z","size":220,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T20:11:46.218Z","etag":null,"topics":["2d-graphics","3d-graphics","go","golang","graphics","processing","tie"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/franeklubi.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}},"created_at":"2018-12-11T10:50:47.000Z","updated_at":"2022-03-13T00:43:29.000Z","dependencies_parsed_at":"2022-09-26T18:50:35.604Z","dependency_job_id":null,"html_url":"https://github.com/franeklubi/tie","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franeklubi%2Ftie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franeklubi%2Ftie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franeklubi%2Ftie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/franeklubi%2Ftie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/franeklubi","download_url":"https://codeload.github.com/franeklubi/tie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248498602,"owners_count":21114150,"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":["2d-graphics","3d-graphics","go","golang","graphics","processing","tie"],"created_at":"2024-11-07T08:44:39.649Z","updated_at":"2025-04-12T00:23:56.525Z","avatar_url":"https://github.com/franeklubi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# franeklubi/tie\n\n[![GoDoc](https://godoc.org/github.com/franeklubi/tie?status.svg)](https://godoc.org/github.com/franeklubi/tie)\n\n![logo](assets/tie_logo_64.png)\n\nPackage `franeklubi/tie` provides a Processing-like API for simple and fun drawing,\ngame making, data and algorithm visualization, and generally - art :)\n\n---\n\n* [Installation](#installation)\n* [Dependencies](#dependencies)\n* [Features](#features)\n* [Example](#example)\n\n---\n\n## Installation\n\nTo install this package:\n\n```sh\ngo get github.com/franeklubi/tie\n```\n\nYou'll also need to install dependencies. (see [Dependencies](#dependencies))\n\n## Dependencies\n\nThis package depends on two other packages:\n* gl v2.1\n* glfw v3.2\n\nTo install these, use:\n```\ngo get github.com/go-gl/gl/v2.1/gl\n```\nthen\n```\ngo get github.com/go-gl/glfw/v3.2/glfw\n```\nand You should be all set! :)\n\n## Features\n\nMain features:\n* it's beginner friendly,\n* has Processing-like API - no need to learn a new framework from the ground up,\n* provides easy image manipulation,\n* it's fun :D\n\n## Example\n\n( For more examples visit [franeklubi/tie-examples](https://github.com/franeklubi/tie-examples/)! )\n\n```go\npackage main\n\n// import the package\nimport (\n    \"github.com/franeklubi/tie\"\n)\n\nfunc main() {\n    // initialize engine in main\n    tie.Init(500, 500, \"window_name\", false)\n    //   width, height, window_name, is_resizable\n\n    // pass all the functions you want used by the engine\n    tie.PassFunctions(\n        preload,\n        setup,\n        draw,\n    )\n\n    // launch the engine\n    tie.Launch()\n}\n\nvar (\n    img tie.Image\n)\n\n// called only once, before setup, nothing can be drawn here\nfunc preload() {\n    img = tie.LoadImage(\"/path/to/image.png\")\n}\n\n// called only once, before draw, you can draw here\nfunc setup() {\n    tie.Background(255, 255, 255, 255)\n}\n\n// called once every frame\nfunc draw() {\n    // drawing loaded image\n    tie.Fill(255, 255, 255, 255)\n    tie.PastePixels(img, 0, 0, tie.Width, tie.Height)\n\n    // drawing ellipse\n    tie.Fill(0, 255, 0, 255)\n    tie.Ellipse(tie.Width/2, tie.Height/2, 200, 200)\n\n    // drawing rectangle\n    tie.Fill(0, 255, 255, 255)\n    tie.Rect(tie.Width/2-50, tie.Height/2-50, 100, 100)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffraneklubi%2Ftie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffraneklubi%2Ftie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffraneklubi%2Ftie/lists"}