{"id":19364530,"url":"https://github.com/math2001/rectjs","last_synced_at":"2025-07-18T02:34:04.299Z","repository":{"id":74807009,"uuid":"76935359","full_name":"math2001/Rectjs","owner":"math2001","description":"Rect heavily inspired by the pygame's Rect (python)","archived":false,"fork":false,"pushed_at":"2016-12-23T23:32:35.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T13:13:39.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/math2001.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-12-20T07:49:52.000Z","updated_at":"2016-12-20T08:03:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"2657ae9c-f252-4aa4-a87b-534a43947385","html_url":"https://github.com/math2001/Rectjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/math2001/Rectjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2FRectjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2FRectjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2FRectjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2FRectjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/math2001","download_url":"https://codeload.github.com/math2001/Rectjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2FRectjs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265692347,"owners_count":23812196,"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-11-10T07:37:39.606Z","updated_at":"2025-07-18T02:34:04.256Z","avatar_url":"https://github.com/math2001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rectjs\n\nRectjs is a simple file that helps you with rects (to use the baslise canvas for example)\n\nIf you've already used the pygame's rect, well the goal of this is to be the exact same, in javascript.\n\nOtherwise, here's how you use it\n\n```javascript\n\u003e var myRect = new Rect(0, 0, 10, 10)\nundefined\n\u003e [myRect.x, myRect.y, myRect.width, myRect.height]\n[ 0, 0, 10, 10 ]\n\u003e myRect.top == myRect.x\ntrue\n\u003e myRect.bottom\n10\n\u003e myRect.center\n[ 5, 5 ]\n\u003e myRect.centerx = 0\n0\n\u003e myRect.left\n-5\n\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath2001%2Frectjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmath2001%2Frectjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath2001%2Frectjs/lists"}