** Bug fixes **
- Enable passing a DOM element to initiate
CanvasSpace
andDOMSpace
. Doc Issue - Fix background transparency by
space.setup({bgcolor: false)
. Doc Issue
Shaping functions
- A series of useful shaping/easing functions are now in extend/Shaping. See a demo here.
Mobile
- All demos are now mobile ready!
Improvements
Util
now includes amapToRange
function (by @tofuness)form.stroke
now supports a lineCap parameter.
Breaking changes
perlin2d
andsimplex2d
in Noise class are renamed toperlin2D
andsimplex2D
for consistency. (by @tofuness)
Mobile
- Pt now supports multi-touch interactions and retina resolutions for mobile. Yay! Get started with this quick mobile guide.
Improvements
Space
constructors get a complete makeover, making it simpler and clearer to use (Issue #12 and #13)- New guides on mobile and svg
- Updated documentations and fixed navigation issues in docs
- Improved SVG and DOM code. SVG moved to
core
library. - New demos: Delaunay triangles and Game of Life
- Various bug fixes
Breaking changes
CanvasSpace
andSVGSpace
now uses a new constructor function. Please take a look at migration guide and update your code.
SVG!
- Pt now supports both html5 canvas and svg. To render in svg, you can simply replace
CanvasSpace
andForm
withSVGSpace
andSVGForm
, and just an additional line ofform.scope(...)
in your code. Everything else stays the same. See demos here and here.
Extended documentations
- [Documentations page]((http://williamngan.github.io/pt/docs/) now includes a section on extended Pt classes such as SVGForm and Noise.
Bug fixes
- improved gulp error handling
- improved homepage design
- other minor stuff
The world was so recent that many things lacked names, and in order to indicate them it was necessary to point.
-- Gabriel Garcia Marquez
What's new
- The first release of Pt include a core set of classes based on Point, Form, and Space.
- A couple of extended classes are in progress
- Draft of supporting documentations and demos
What's missing
- In this version we only provides
CanvasSpace
andForm
to support html5 canvas drawing. We would want to get to other forms of expressions, such as DOM or SVG or even something more experimental like Sound. - For canvas drawing, current release only supports 2D graphics for the most part. Needs some more thinking on the approach to 3D.
- Rough build system and unit tests. To be improved.