{"id":15386633,"url":"https://github.com/pixelscommander/isantialiasingsupportedforwebgl","last_synced_at":"2025-04-15T20:09:20.338Z","repository":{"id":57277811,"uuid":"138148599","full_name":"PixelsCommander/isAntialiasingSupportedForWebGL","owner":"PixelsCommander","description":"gl.antialias=true does not guarantee it is actually going to be ON because browser accepts antialias attribute just as a hint and decides on itself there. This library checks for actual AA availability.","archived":false,"fork":false,"pushed_at":"2018-06-21T12:36:39.000Z","size":20,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T20:09:14.358Z","etag":null,"topics":["antialiasing","detection","support","webgl"],"latest_commit_sha":null,"homepage":"http://pixelscommander.com/polygon/aatest/demo/","language":"JavaScript","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/PixelsCommander.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}},"created_at":"2018-06-21T09:22:25.000Z","updated_at":"2024-05-31T08:50:19.000Z","dependencies_parsed_at":"2022-09-13T18:31:47.872Z","dependency_job_id":null,"html_url":"https://github.com/PixelsCommander/isAntialiasingSupportedForWebGL","commit_stats":null,"previous_names":["pixelscommander/antialiastestwebgl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixelsCommander%2FisAntialiasingSupportedForWebGL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixelsCommander%2FisAntialiasingSupportedForWebGL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixelsCommander%2FisAntialiasingSupportedForWebGL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixelsCommander%2FisAntialiasingSupportedForWebGL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PixelsCommander","download_url":"https://codeload.github.com/PixelsCommander/isAntialiasingSupportedForWebGL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145302,"owners_count":21219966,"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":["antialiasing","detection","support","webgl"],"created_at":"2024-10-01T14:50:00.181Z","updated_at":"2025-04-15T20:09:20.320Z","avatar_url":"https://github.com/PixelsCommander.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Is Antialiasing Supported? For WebGL ![Image of check sign](./check.jpeg)\n\nYou probably heard about WebGL context ```antialias``` property. The interesting fact is that having `true` as a value there does not guarantee antialiasing to be actually enabled. It works just as a hint for browser but there are many reasons it might be disabled and you d like to react on this. For example by enabling shader-based FSAA.\n\nWith this library you can actually check if AA works for this machine. Once executed it adds ```window.antialiasingSupported: boolean``` property which is ```true``` if AA is available.\n\n[Demo](http://pixelscommander.com/polygon/aatest/demo/)\n\n## Usage\n\n```npm install isantialiasingsupported```\n\ninclude into your project and after you may check for\n\n```if (window.antialiasingSupported) ...```\n\n## How this works?\n\nLibrary creates tiny detached canvas and draws triangle on it with WebGL.\n\n![Image of Yaktocat](./test.png)\n\nIf triangle have any pixels except white and black then it is antialiased and ```window.antialiasingSupported``` is set to ```true```.\n\n## License\n\nMIT: http://mit-license.org/\n\nCopyright 2018 Denis Radin aka [PixelsCommander](http://pixelscommander.com)\n\n## Credits\n\nInspired by my work at [Evolution Gaming](https://www.evolutiongamingcareers.com/search-jobs/?department=Engineering\u0026country=)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelscommander%2Fisantialiasingsupportedforwebgl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixelscommander%2Fisantialiasingsupportedforwebgl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelscommander%2Fisantialiasingsupportedforwebgl/lists"}