Get new jQuery plugins just once a week

×

Pt

December 19, 2015

Pt | An experimental javascript canvas library on point, form, and space.

Pt is an experimental javascript canvas library on point, form, and space.

Created by William Ngan

Download

Example

Pt javascript library

canvas

Pt

cover image

Hello 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.

Get started

The best places to get started are: - Demos page shows various interactive sketches, usually done in short form (50-70 lines of code). - Description is a little essay about the motivations behind Pt. 7 mins read. - Quick start guide helps you understand how Pt works, intended for both technical and non-technical audiences. - Documentation describes Pt's classes and functions. - Release notes talks about what's past, or passing, or to come. - Issues page is the place to report bugs and discuss features. Also you can ask questions on stackoverflow with #ptjs tag, or ping me anytime @williamngan. Your feedbacks and ideas are appreciated!

Files

Looking for the actual javascript library files? Here you go: - If using npm, you can do: npm install ptjs and then use it like import {Vector, Rectangle} from 'ptjs'

The latest release is always in the master branch. For now.

Compiling

(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.)

Pt'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.

To compile the source, first run npm install in terminal to get the dependencies. (If you haven't, install node and npm first.)

Then simply run gulp in terminal, and it will watch for changes and build the project continuously.

The build system is very rough at this stage, and there are only some rudimentary unit tests. Let's make these better.

Pt

Related posts:

ReKapi
Transitive-js
Linking
Pt javascript library

http://jquer.in/wp-content/uploads/2015/11/Pt.jpg

jQuery plugin

Sign up for our weekly newsletter.

* We won't spam you ever