Pts.js

Languages and libraries

javascript graphics library

SHOW HN2018

Legend

Pts.js

A library for visualization and creative coding

ptsjs.org

#javascript#visualization#creative coding#geometry#canvas

611points
71comments
#17of 2,155 in 2018
Top 1%of 2018 by points

How HN took it

LovedMost comments that take a side are positive

23 positive, 15 neutral or asking, 1 mixed, 3 critical, out of 42 comments about the project. Thread score +0.53.

Design: 9 for, 0 againstIdea: 5 for, 0 againstDocs: 2 for, 1 againstExecution: 0 for, 2 againstPerformance: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Well-designed API and documentation

    From 3 comments
    • While I cannot see myself needing this sort of animation in my day to day work, I was super impressed by the documentation and thought the demos were fun.
      djstein on HN
    • As a noob I love the documentation and although I don't know what I'd do with this, it feels crazy accessible on the surface.
      duxup on HN
    • I really like how the API is structured similarly to how someone designing a visualization would think about what they actually want to do (i.e. "Connect one end of the line to…
      koboll on HN
  • Lightweight, no framework needed, easy to include via script tag

    From 2 comments
    • Very cool. Kudos for providing a good old-fashioned javascript library and not forcing people to use flavour of the month MVC/MVVM framework / babel-ES6-TS-god-knows-what…
      grezql on HN
    • Not required. You can just include the pts.js or pts.min.js in script tag. https://unpkg.com/pts@0.5.0/dist/pts.js
      metaphorical on HN
  • Geometric operations beyond p5 and pixi

    From 1 comment
    • At first glance, it seems to support geometrical operations that neither of those have built in. Things like "draw the incircle of this triangle" and "draw a perpendicular from a…
      roywiggins on HN

Objections

  • Requires understanding TypeScript or build setup to build from source

    From 2 comments
    • It looks like this library does use es6 features and requires babel to build from source.
      beart on HN
    • He said building from source, not using an already built version. For that you need babel.
      mindw0rk on HN
  • Starter example failed to render for one user

    From 2 comments
    • I cannot get the most basic Get started example working. I used pts-starter-kit. The canvas shows up and I can set the bgcolor no problem, but the point does not render.
      iamlukesky on HN
    • Yes, the demo works. But replacing the code in app.js with the code from the intro doesn't. I'll file an issue tomorrow with exact details.
      iamlukesky on HN

Questions

  • How does it compare to p5.js and pixi.js in features and performance

    From 3 comments
    • Cool! How does it compare (in vision and features) to p5.js and pixi.js?
      Zalastax on HN
    • this seems really cool. anyone using it for any projects right now? i wonder how it compares to p5 in performance. development-wise, the structure of a pts space looks very…
      thekelvinliu on HN
    • p5.js is also a decent library for this kinda stuff. I'm wondering if they knew about p5.js, and if they did -- what are the main benefits of this library over p5.js?
      anonytrary on HN

Alternatives named

  • p5.js

    From 2 comments
    • p5.js is also a decent library for this kinda stuff. I'm wondering if they knew about p5.js, and if they did -- what are the main benefits of this library over p5.js?
      anonytrary on HN
    • Cool! How does it compare (in vision and features) to p5.js and pixi.js?
      Zalastax on HN
  • pixi.js

    From 1 comment
    • Cool! How does it compare (in vision and features) to p5.js and pixi.js?
      Zalastax on HN
  • d3

    From 1 comment
    • Would like to see how this compares to d3. D3 is incredibly powerful but also very difficult to learn and teach. Whenever I write code in it, I feel like I'm the last person to…
      speedplane on HN
  • ganja.js

    From 1 comment
    • How does it compare to ganja.js? https://github.com/enkimute/ganja.js
      vanderZwan on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/17716542)