{"id":15531464,"url":"https://github.com/hugeblank/shatter","last_synced_at":"2025-08-08T23:18:17.633Z","repository":{"id":118981520,"uuid":"142542429","full_name":"hugeblank/Shatter","owner":"hugeblank","description":"Shatter your dull Overlay Glasses experience by turning it into a redirectable terminal target!","archived":false,"fork":false,"pushed_at":"2024-01-22T05:21:39.000Z","size":65,"stargazers_count":5,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T13:15:38.508Z","etag":null,"topics":["computercraft","glasses","overlay","plethora"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugeblank.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-07-27T07:18:41.000Z","updated_at":"2024-01-21T00:50:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"fde7773f-49bc-4d83-831b-284936552b40","html_url":"https://github.com/hugeblank/Shatter","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/hugeblank%2FShatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeblank%2FShatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeblank%2FShatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeblank%2FShatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugeblank","download_url":"https://codeload.github.com/hugeblank/Shatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250439291,"owners_count":21430824,"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":["computercraft","glasses","overlay","plethora"],"created_at":"2024-10-02T11:26:19.510Z","updated_at":"2025-04-23T13:15:47.285Z","avatar_url":"https://github.com/hugeblank.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shatter\n\nShatter your dull Overlay Glasses experience by turning it into a redirectable terminal target!\n\nShatter adds several features to the overlay glasses experience beyond a terminal. It is meant to be used in a neural interface (obviously) with an unbound wireless keyboard.\n\n## Brief Rundown\n\n### API\n\n- **Parameters**\n  - _table_: canvas object provided by the overlay glasses\n- **Returns**\n  - _table_: terminal object\n  - _function_: cursor handler function to be put in parallel with your code\n  \n### Terminal Object\n\n#### Alpha Manipulation\n\n`getTextAlpha`: get the alpha value for the text\n\n- **Parameters**\n  - _none_\n- **Returns**\n  - _number_: alpha value, in range 0-1\n  \n`getBackgroundAlpha`: get the alpha value for the background\n\n- **Parameters**\n  - _none_\n- **Returns**\n  - _number_: alpha value, in range 0-1\n  \n`setTextAlpha`: set the alpha value for the text\n\n- **Parameters**\n  - _number_: alpha value within range 0-1\n- **Returns**\n  - _none_\n  \n`setBackgroundAlpha`: set the alpha value for the background\n\n- **Parameters**\n  - _number_: alpha value within range 0-1\n- **Returns**\n  - _none_\n\n#### Custom Color Manipulation\n\n`setTextHex`: set the text color using a color code in the format `0xrrggbbaa`\n\n- **Parameters**\n  - _number_: hex code for color value\n- **Returns**\n  - _none_\n  \n`setBackgroundHex`: set the background color using a hex color code in the format `0xrrggbbaa`\n\n- **Parameters**\n  - _number_: hex code for color value\n- **Returns**\n  - _none_\n\n`getTextHex`: gets the text color returned in the format `0xrrggbbaa`\n\n- **Parameters**\n  - _none_\n- **Returns**\n  - _number_: hex code for color value\n  \n`getBackgroundHex`: gets the background color returned in the format `0xrrggbbaa`\n\n- **Parameters**\n  - _none_\n- **Returns**\n  - _number_: hex code for color value\n\n#### Scaling\n\n`setScale`: set the text and background pixel scale\n\n- **Parameters**\n  - _number_: scale value within range 0.5-10\n- **Returns**\n  - _none_\n\n### Events\n\n  `shatter_resize`: fired when the shatter terminal object is resized\n  \n## Getting Started\n\nLet's set up all elements of shatter!\nObviously you're here for this part so I'll make it as brief as possible.\n\n1. run `wget https://raw.githubusercontent.com/hugeblank/Shatter/master/shatter.lua` on your neural interface that has overlay glasses.\n2. Find an unbound wireless keyboard, this functions as both a keyboard \u0026 mouse, keep that in mind.\n3. Check out the [examples](./examples) directory for demonstrations on how to use shatter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugeblank%2Fshatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugeblank%2Fshatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugeblank%2Fshatter/lists"}