Version 0.6.0
We're happy to announce a developmental release from this Google Summer of Code 2019 project! This release includes addition of new APIs. In addition to the new APIs, many examples and tutorials are added for p5 modules (the details can be found on the p5 documentation website).
List of new APIs
-
Typography methods
p5.text_align
,p5.text_leading
andp5.text_size
allows the user to control different position and size attributes of the text. Methodsp5.text_ascent
,p5.text_descent
andp5.text_width
can be used to obtain different dimensional attributes of text. -
p5.load_shape
function allows the user to load an SVG file which can be rendered on the screen. The SVG shape is converted into PShape primitives and rendered on the screen usingp5.shape
method. -
The methods
p5.begin_shape
andp5.end_shape
can be used to make custom shapes defined by different vertex types (p5.vertex
,p5.curve_vertex
,p5.bezier_vertex
,p5.quadratic_vertex
). Contours inside a shape can also be created usingp5.begin_contour
andp5.end_contour
methods. -
Stroke methods allows the user to control the stroke width and styles:
p5.stroke_weight
: allows for specifying the width of strokep5.stroke_cap
: allows the user to set the style of line endingsp5.stroke_join
: allows the user to set the style of joints which connect the line segments
-
This release introduces limited 3D support. New functions for :
- The
p5.camera
allows for specifying the camera coordinates in 3D space - The projection functions
p5.ortho
andp5.perspective
allow the user to control the type of projection system being used to render 3D objects on the screen - New 3D shape primitives are added:
p5.box
,p5.plane
,p5.sphere
,p5.ellipsoid
,p5.cylinder
,p5.cone
,p5.torus
- The
List of issues fixed in this release
- #129 millis() does not go beyond 1 second and gives microseconds()
- #114 Rectangle not overlaying on line correctly
- #91 Arc does not render correctly with transparency
- #90 arc outline shows up as line in corner of window
This release also includes contributions from @edurojasr, @abhikpal and @jeremydouglass. Thanks :)