{"id":21903910,"url":"https://github.com/hansemannn/ti.glpaint","last_synced_at":"2025-04-15T20:45:18.554Z","repository":{"id":142791234,"uuid":"55865295","full_name":"hansemannn/ti.glpaint","owner":"hansemannn","description":"Support for OpenGL drawing in Titanium.","archived":false,"fork":false,"pushed_at":"2017-03-21T15:44:50.000Z","size":988,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T01:12:13.725Z","etag":null,"topics":["appcelerator","javascript","native","opengl","titanium"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hansemannn.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":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-09T20:22:40.000Z","updated_at":"2017-12-09T05:03:35.000Z","dependencies_parsed_at":"2023-03-18T06:00:34.026Z","dependency_job_id":null,"html_url":"https://github.com/hansemannn/ti.glpaint","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fti.glpaint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fti.glpaint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fti.glpaint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fti.glpaint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansemannn","download_url":"https://codeload.github.com/hansemannn/ti.glpaint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249152617,"owners_count":21221276,"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":["appcelerator","javascript","native","opengl","titanium"],"created_at":"2024-11-28T15:30:09.606Z","updated_at":"2025-04-15T20:45:18.546Z","avatar_url":"https://github.com/hansemannn.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ti.GLPaint\n\n\u003e This module is still work in progress. The opacity currently cannot be changed and the image needs to be placed inside the module directly.\n\n\u003cimg width=\"310\" src=\"http://abload.de/img/simulatorscreenshot09b4jwb.png\"\u003e\n\n## Usage\n\n```js\nvar module = require(\"ti.glpaint\");\nvar win = Ti.UI.createWindow({\n    backgroundColor: \"#fff\"\n});\nvar paintView = module.createPaintView({\n    brush: {\n        opacity: 10,\n        tintColor: \"red\",\n        image: \"brush.png\"\n    },\n    top: 100\n});\n\npaintView.addEventListener(\"touchesBegan\", function(e) {\n    Ti.API.info('Touches began');\n    Ti.API.info(e);\n});\n\npaintView.addEventListener(\"touchesMoved\", function(e) {\n    Ti.API.info('Touches moved');\n    Ti.API.info(e);\n});\n\npaintView.addEventListener(\"touchesEnded\", function(e) {\n    Ti.API.info('Touches ended');\n    Ti.API.info(e);\n});\n\nvar btn1 = Ti.UI.createButton({\n    title: \"Change to green color\",\n    top: 30\n});\n\nvar btn2 = Ti.UI.createButton({\n    title: \"Erase\",\n    top: 50\n});\n\nbtn1.addEventListener(\"click\", function() {\n    paintView.setBrush({\n    opacity: 5,\n        tintColor: \"green\",\n        image: \"brush2.png\"\n    });\n});\n\nbtn2.addEventListener(\"click\", function() {\n    paintView.erase();\n});\n\nwin.add(paintView);\nwin.add(btn1);\nwin.add(btn2);\nwin.open();\n```\n\n## Copyright\n\n\u0026copy; 2016 by Hans Knoechel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Fti.glpaint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansemannn%2Fti.glpaint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Fti.glpaint/lists"}