

GitHub - williamngan/pts: A library for visualization and creative-coding
source link: https://github.com/williamngan/pts
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
Pts
Pts is a typescript/javascript library for visualization and creative-coding.
Get started at ptsjs.org.
Please give it a try, file issues, and send feedbacks to @williamngan. Thank you!
Usage
Option 1
Get the latest pts.js
or pts.min.js
(in dist folder). Alternatively use a CDN service like jsdelivr or unpkg. Then add it to your html page like this:
<script type="text/javascript" src="path/to/pts.js"></script>
Pts is pretty lightweight. Currently at ~90kb minified and 26kb gzipped.
Option 2:
Install via npm install pts
. Then you can choose to import some parts of Pts into your project as needed.
import {CanvasSpace, Pt, Group, Line} from 'pts';
To quickly get started, try download or clone these repos:
- pts-starter-kit: Get started with a sample app using npm and webpack
- pts-react-example: Try an example of using Pts with React. (Note that you'll need to custom your own production/minified builds.)
Get Started
Read the guides and take a look at the demos and their source code.
If you need help, please don't hesitate to file an issue.
For development
Pts is written in typescript. You can clone or fork this project and build it as follows:
Build and test
Clone this repo and install dependencies via npm install
.
npm start
npm run build
npm test
Generate documentations
Run this to generate Pts styled documentations. (Requires python 3.6)
npm run docs
If you prefer to generate default typedocs, run this:
typedoc --readme none --out typedocs src --name Pts
Generate typescript declaration files and minify
npm run typings
npm run minify
Contributing
We appreciate your support and feedbacks!
Please file issues if you find bugs and have feature requests. If you are able to send small PRs to improve Pts or fix bugs, that would be awesome too.
For larger PRs, please ping @williamngan to discuss first.
License
Apache License 2.0. See LICENSE file for details.
Copyright © 2017-2018 by William Ngan and contributors.
Recommend
-
101
README.md Zeu.js
-
12
Pts is a javascript library for visualization and creative-coding.
-
27
-
53
README.md
-
16
readme.md
-
7
10 innovative creative coding examples that are redefining programming
-
8
Thursday, December 17, 2020 What is “creative” coding, anyway? At this point, I am wary whenever I hear the term “creativity” used in the domain of computer science and computer p...
-
8
故事点 VS 人天by Teobler on 19 / 12 / 202118 viewsback在敏捷实践中,故事点是用来估算
-
4
Kill user tty/pts sessions in Linux Commands w: show who is logged on and what they are doing who: show who is logged on tty: show current users pseudo terminal...
-
7
Coinstore Partners with PTS Token for Listing on our platform.
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK