GithubHelp home page GithubHelp logo

williamngan / pts-starter-kit Goto Github PK

View Code? Open in Web Editor NEW
30.0 2.0 7.0 878 KB

Quick start to build your own generative art / visualization / interactive demo using Pts.js. Supports javascript and typescript.

License: Apache License 2.0

JavaScript 54.12% TypeScript 45.88%
pts

pts-starter-kit's Introduction

pts-starter-kit

screenshot

This is a sample app to help you get started with Pts.js. Pts supports both javascript (.js) and typescript (.ts). Here we use esbuild to give you smaller file size at faster build speed โ€” This demo is about ~86kb minified and ~26kb gzipped.

If you prefer to use Pts without build steps, you can also link it directly using a CDN like cndjs or unpkg. For example:

<script type="text/javascript" src="https://unpkg.com/pts/dist/pts.min.js"></script>

And you can also try out Pts without any setup using the live demo editor.

Pts is a library for visualizaton and creative coding. Learn more at https://ptsjs.org.

Getting npm and yarn

  1. npm is a package manager for Node, and it comes with Node installation. If you don't have Node yet, download it here.
  2. yarn is an alternative to npm. Run npm i -g yarn to install, or see here for more installation options. Skip this step if you would rather just use npm.

Install

  1. Clone or download this repo.
  2. Go to the folder in terminal, and run yarn (or npm install) to install the dependencies.

Run

  1. Run yarn start (or npm start) to start.
  2. Open localhost:8000 and you should see your app running like the image above
  3. Edit src/app.js to make changes to the sample app

Building for production

Run yarn build (or npm run build).

Note that the Pts library uses es6 features such as extending built-in classes like Array.

Future Improvements

  • Please file an issue if you have suggestions or encounter errors.

License

Apache 2.0 License. See LICENSE file.

pts-starter-kit's People

Contributors

dependabot[bot] avatar koryschneider avatar williamngan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.