{"id":17967578,"url":"https://github.com/williamngan/pt","last_synced_at":"2025-05-16T10:06:14.150Z","repository":{"id":34892326,"uuid":"38919012","full_name":"williamngan/pt","owner":"williamngan","description":"An experimental library on point, form, and space.","archived":false,"fork":false,"pushed_at":"2018-02-13T09:06:59.000Z","size":5671,"stargazers_count":909,"open_issues_count":10,"forks_count":65,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-05-03T15:02:05.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/williamngan.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}},"created_at":"2015-07-11T08:13:52.000Z","updated_at":"2025-03-03T19:45:31.000Z","dependencies_parsed_at":"2022-09-15T22:21:55.559Z","dependency_job_id":null,"html_url":"https://github.com/williamngan/pt","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamngan%2Fpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamngan%2Fpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamngan%2Fpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamngan%2Fpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williamngan","download_url":"https://codeload.github.com/williamngan/pt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149870,"owners_count":22022850,"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-29T14:09:07.457Z","updated_at":"2025-05-16T10:06:14.108Z","avatar_url":"https://github.com/williamngan.png","language":"CoffeeScript","funding_links":[],"categories":["Graphics and Media","Frameworks/Libraries","CoffeeScript"],"sub_categories":["Graphics and Rendering","Graphics"],"readme":"# Pt \n\n![cover image](./docs/images/pt/vector.field.png)\n\nHello there. Allow me to introduce Pt, which is a study of Point, Form, and Space. It is experimental and fun, and I hope you will use it to make crazy, strange, awesome things.\n\n### Update 2017\nThere's an improved version of Pt, written in typescript and with simplified workflows. Please visit [https://ptsjs.org](https://ptsjs.org) and check out [the new repo](https://github.com/williamngan/pts)\n\n### Get started\nThe best places to get started are:\n- **[Demos page](http://williamngan.github.io/pt/demo/index.html?name=pair.collinear)** shows various interactive sketches, usually done in short form (50-70 lines of code).\n- **[Description](http://medium.com/@williamngan/93382bf5943e/)** is a little essay about the motivations behind Pt. 7 mins read.\n- **[Quick start guide](http://williamngan.github.io/pt/docs/guide/quickstart.html)** helps you understand how Pt works, intended for both technical and non-technical audiences.\n- [Documentation](http://williamngan.github.io/pt/docs/) describes Pt's classes and functions.\n- [Release notes](https://github.com/williamngan/pt/blob/master/RELEASE.md) talks about what's past, or passing, or to come.\n- [Issues page](https://github.com/williamngan/pt/issues) is the place to report bugs and discuss features. Also you can ask questions on [stackoverflow](http://stackoverflow.com/questions/tagged/ptjs) with `#ptjs` tag, or ping me anytime [@williamngan](http://twitter.com/williamngan). Your feedbacks and ideas are appreciated!\n\n### Files\nLooking for the actual javascript library files? Here you go:\n- If using [**npm**](https://www.npmjs.com/package/ptjs), you can do: `npm install ptjs` and then use it like `import {Vector, Rectangle} from 'ptjs'`\n\n- If using standalone file, **[pt.js](https://github.com/williamngan/pt/blob/master/dist/pt.js)** is the full version, **without namespace**. If you just want to sketch out a simple idea with Pt, this is probably what you need.\n- [pt.min.js](https://github.com/williamngan/pt/blob/master/dist/pt.min.js) is the minified version of the above.\n\n- [pt-ns.js](https://github.com/williamngan/pt/blob/master/dist/pt-ns.js) is the full version **with namespace**. That means, instead of `new Point()`, you'll write `new Pt.Point()`. It's unaesthetic but perhaps necessary (sometimes).\n- [pt-ns.min.js](https://github.com/williamngan/pt/blob/master/dist/pt-ns.min.js) is the minified version of the above\n\n- Pt has a set of core classes, and a growing list of extended classes. If you just want the core classes (smaller file size, only ~70kb min or ~20kb gzip without dependencies), you can get `pt-core.js` and others in the [core folder](https://github.com/williamngan/pt/tree/master/dist/core).\n\nThe latest release is always in the master branch. For now.\n\n### Compiling\n(**Note to general users**: this section is useful only if you want to contribute code. You don't need to compile anything to use Pt. Simply include the `pt.js` file above in your html and you're good to go -- check the quick start guide if you're not sure.)\n\nPt's source code is written in coffeescript. Coffeescript is quick and I think quite suitable at this experimental stage. We'll see how it goes.\n\nTo compile the source, first run `npm install` in terminal to get the dependencies. (If you haven't, install node and npm first.)\n\nThen simply run `gulp` in terminal, and it will watch for changes and build the project continuously.\n\nThe build system is very rough at this stage, and there are only some rudimentary [unit tests](https://github.com/williamngan/pt/tree/master/test). Let's make these better.\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamngan%2Fpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliamngan%2Fpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamngan%2Fpt/lists"}