{"id":15722514,"url":"https://github.com/dragosha/defold-sprite-repeat","last_synced_at":"2025-08-09T08:06:58.383Z","repository":{"id":229885846,"uuid":"777908536","full_name":"Dragosha/defold-sprite-repeat","owner":"Dragosha","description":"Texture repeat (tiling) shader. For Sprites and GUI box nodes.","archived":false,"fork":false,"pushed_at":"2024-07-27T08:23:12.000Z","size":304,"stargazers_count":28,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T14:42:45.589Z","etag":null,"topics":["defold","defold-module","defold-shaders"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/Dragosha.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":"2024-03-26T18:18:46.000Z","updated_at":"2025-03-27T07:27:06.000Z","dependencies_parsed_at":"2024-07-27T09:44:53.066Z","dependency_job_id":null,"html_url":"https://github.com/Dragosha/defold-sprite-repeat","commit_stats":null,"previous_names":["dragosha/defold-sprite-repeat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dragosha/defold-sprite-repeat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dragosha%2Fdefold-sprite-repeat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dragosha%2Fdefold-sprite-repeat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dragosha%2Fdefold-sprite-repeat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dragosha%2Fdefold-sprite-repeat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dragosha","download_url":"https://codeload.github.com/Dragosha/defold-sprite-repeat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dragosha%2Fdefold-sprite-repeat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269548500,"owners_count":24436113,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["defold","defold-module","defold-shaders"],"created_at":"2024-10-03T22:08:15.735Z","updated_at":"2025-08-09T08:06:58.339Z","avatar_url":"https://github.com/Dragosha.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sprite texture repeat shader. (or tiling)\n\n---\nSet 'sprite_repeat' material to the sprite. Directly in the editor or with code.\n\n```lua\ngo.set(self.url, \"material\", self.repeat_material)\n```\n\n\nCreate and go our super-puper repeating magic.\n\n```lua\nlocal sprite_repeat = require('sprite_repeat.sprite_repeat')\n\nfunction init(self)\n\n\tlocal repeat_x = 4\n\tlocal repeat_y = 4\n\n\tlocal sr = sprite_repeat.create(\"#sprite_url\")\n\tsr.animate(repeat_x, repeat_y)\n\nend\n```\n\nSee file 'sprite_repeat.script' for details.\n\nWorks with both static and animated sprites.\n\n![Example](example.png)\n\n\n# GUI box node texture repeat shader.\n\n---\nSet 'node_repeat' material to the box node. Directly in the editor or with code.\n\n```lua\ngui.set_material(node, \"gui_repeat\")\n```\n\nSetup constants to the material shader:\n\n```lua\n\tlocal node_repeat = require('node_repeat.node_repeat')\n\t....\n\tlocal nr = node_repeat.create(node, nil, atlas_path)\n\tnr.animate(repeat_x, repeat_y)\n```\n\nUpdate the repeat factors if need:\n\n```lua\n\tnr.update(1, 4*y)\n```\n\nSee 'test.gui_script' for details.\n\n---\n\nHappy Defolding!\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragosha%2Fdefold-sprite-repeat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdragosha%2Fdefold-sprite-repeat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragosha%2Fdefold-sprite-repeat/lists"}