{"id":16167958,"url":"https://github.com/kylecorry31/joystick-transform-plotter","last_synced_at":"2025-04-07T06:18:01.314Z","repository":{"id":80503922,"uuid":"74859480","full_name":"kylecorry31/Joystick-Transform-Plotter","owner":"kylecorry31","description":null,"archived":false,"fork":false,"pushed_at":"2016-11-29T14:32:35.000Z","size":463,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T10:23:40.670Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kylecorry31.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-27T01:00:22.000Z","updated_at":"2019-07-15T21:57:17.000Z","dependencies_parsed_at":"2023-05-24T08:00:32.522Z","dependency_job_id":null,"html_url":"https://github.com/kylecorry31/Joystick-Transform-Plotter","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/kylecorry31%2FJoystick-Transform-Plotter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylecorry31%2FJoystick-Transform-Plotter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylecorry31%2FJoystick-Transform-Plotter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylecorry31%2FJoystick-Transform-Plotter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kylecorry31","download_url":"https://codeload.github.com/kylecorry31/Joystick-Transform-Plotter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601447,"owners_count":20964866,"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":[],"created_at":"2024-10-10T03:09:55.614Z","updated_at":"2025-04-07T06:18:01.294Z","avatar_url":"https://github.com/kylecorry31.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Joystick Transform Plotter\n==========================\n\nA joystick transform function plotter for Python.\nMaps controller input through an equation and plots it as either a 2d representation of a 3d graph or a 2d graph for a single axis.\n\nRequires matplotlib\n\n```Python\n## examples\nplot3d(mag)\n\ndef thresh(x, y, t):\n    if abs(x) \u003c t:\n        x = 0\n    if abs(y) \u003c t:\n        y = 0\n    return mag(x, y)\n\nplot3d(lambda x, y: thresh(x, y, 0.25))\n\ndef square(x):\n    return x**2\n\nplot2d(square)\nplot2d(lambda x: x)\n\ndef thresh2(x, t):\n    if abs(x) \u003c t:\n        return 0\n    return x\n\nplot2d(lambda x: thresh2(x, 0.25))\n```\n\n## A linear transform over a single axis\n![Linear Axis](linear_axis.png)\n\n## A square transform over a single axis\n![Square Axis](squared_axis.png)\n\n## A deadzone transform over a single axis\n![Axis Deadzone](axis_deadzone.png)\n\n## A axial deadzone transform over both axes\n![Axial Deadzone](axial_deadzone.png)\n\n## A radial deadzone transform over both axes\n![Radial Deadzone](radial threshold.png)\n\n## A scaled radial deadzone transform over both axes\n![Scaled Radial Deadzone](scaled radial threshold.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylecorry31%2Fjoystick-transform-plotter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkylecorry31%2Fjoystick-transform-plotter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylecorry31%2Fjoystick-transform-plotter/lists"}