P5

Latest version: v0.8.4

Safety actively analyzes 629723 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

0.8.3

What's Changed
* Check is user has defined preload before use by davidlowryduda in https://github.com/p5py/p5/pull/414
* Fix362 : Fixed order of GHAs by RyanWalker277 in https://github.com/p5py/p5/pull/412
* Format Python code with psf/black push by github-actions in https://github.com/p5py/p5/pull/405
* fix: add pyopengl-accelarate back as a dependency due to upstream fix… by tushar5526 in https://github.com/p5py/p5/pull/416
* Format Python code with psf/black push by github-actions in https://github.com/p5py/p5/pull/415
* Linter fix by tushar5526 in https://github.com/p5py/p5/pull/421
* Fix for unordinary behavior of size() in setup() for skia by devAyushDubey in https://github.com/p5py/p5/pull/420
* Format Python code with psf/black push by github-actions in https://github.com/p5py/p5/pull/422
* add type to io by asukaminato0721 in https://github.com/p5py/p5/pull/430
* add type to util by asukaminato0721 in https://github.com/p5py/p5/pull/432
* add type to sketch by asukaminato0721 in https://github.com/p5py/p5/pull/431
* type pmath module by asukaminato0721 in https://github.com/p5py/p5/pull/428
* add initial type for core by asukaminato0721 in https://github.com/p5py/p5/pull/429
* Update requirements.txt by tushar5526 in https://github.com/p5py/p5/pull/435
* fix args unpacking for corners mode by hvitis in https://github.com/p5py/p5/pull/442
* fix jitter behaviour of skia due to double buffers swapping by tushar5526 in https://github.com/p5py/p5/pull/446
* docs for v0.8.3 by tushar5526 in https://github.com/p5py/p5/pull/450
* update version and setup file for release by tushar5526 in https://github.com/p5py/p5/pull/451
* Fix wrong mouse position bug in MacOS by [tushar5526](https://github.com/tushar5526) in https://github.com/p5py/p5/pull/446
* Fix window size being half in retina display bug in MacOS by [tushar5526](https://github.com/tushar5526) in https://github.com/p5py/p5/pull/446
New Contributors
* davidlowryduda made their first contribution in https://github.com/p5py/p5/pull/414
* RyanWalker277 made their first contribution in https://github.com/p5py/p5/pull/412
* devAyushDubey made their first contribution in https://github.com/p5py/p5/pull/420
* asukaminato0721 made their first contribution in https://github.com/p5py/p5/pull/430
* hvitis made their first contribution in https://github.com/p5py/p5/pull/442

**Full Changelog**: https://github.com/p5py/p5/compare/v0.8.1...v0.8.3

0.8.2

- `pyopengl-accelarate` upstream issue was fixed and we can install the package now on Linux.
- Fixed `preload` bug

0.8.1

=====

We are happy to announce the final developmental release under the summer fellowship at [The Processing Foundation](https://processingfoundation.org/)
The project was supervised by [Mark Zhang](https://github.com/ziyaointl). This release adds on to the experimental 2D renderer using [Skia](https://skia.org).


New Features
------------

Typography support for skia 371
- p5py now support all types of fonts as found in other processing ports
- 5x efficiency in font sketches as compared to vispy renderer

Image APIs for "skia" 344

Support for Offscreen buffers 386
- create_grahpics is now available in p5py's skia renderer

Support for python 3.10 395
- Please see the attached note below

This release includes contributions from tushar5526, ziyaointl, and Mr-Sunglasses, Thank you!

PS: There are a lot of good open issues that currently need help and we would love your contributions!

NOTE

`pyopengl-accelarate` is omitted from the `requirements.txt` temporarily. See 397 for more information about this. If you are looking for better 3D performance you can install it from the `requirements.txt` file.


benchmark | with pyopengl-accelerate | without pyopengl-accelerate | change
-- | -- | -- | --

0.8.0

=====

We are happy to announce another developmental release under the summer fellowship at [The Processing Foundation](https://processingfoundation.org/). The project was supervised by [Mark Zhang](https://github.com/ziyaointl). This release comes with an experimental 2D renderer using [Skia](https://skia.org/). The skia 2D renderer shows significant improvements in both rendering
and efficiency of the sketches.

You can use the new 2D renderer by using the `renderer` argument in `run` function `run(renderer='skia')`

Bug Fixes
---------

- \276
- \311
- \308
- \309
- \355
- \352

New Features
------------

- Along with the snake\_case convention we support the camelCase
convention for most Processing APIs \280
- New experimental 2D renderer \"skia\" \344. Skia currently does not
support typography and Image APIs, they will be implemented in
further releases.

List of New APIs
----------------

> - `frame_rate`{.interpreted-text role="any"} sets frame rate for a
> sketch (only for skia)
> - `rect`{.interpreted-text role="any"} now supports border radius
> (only for skia)
> - `CORNERS`{.interpreted-text role="any"} CORNERS mode added (only
> for skia)
> - `focussed`{.interpreted-text role="any"} holds whether the current
> window is in focus or not (only for skia)

All the API previously present are supported as well in skia.

`Here are some profiling results comparing the time taken to draw 100 frames for different sketches`

| Name | Skia | Vispy |
|-----------------|--------|--------|
| arcs | 2.11s | 10.06s |
| custom_shapes | 1.84s | 5.00s |
| triangle_strip | 2.55s | 3.33s |
| curves | 1.76s | 5.41s |
| primitives | 1.73s | 3.9s |

This release includes contributions from \tushar5526, \niklasr22,
\ziyaointl, \nakul-shahdadpuri, \andreasWallner, \janbehrens,
\yogeshhk, \cuppajoeman, \willtryagain, \parsoyaarihant,
\Kartik-byte, \Andy-Python-Programmer, \Mr-Sunglasses Thank you!

0.7.1

We are happy to announce another developmental release from Google Summer of Code 2020! This is the final release for GSOC this year and includes API refactors, additions, and bug fixes with compatibility and stability as foci.

List of New APIs

* `fract` calculates the fractional part of a number. Contributed by tushar5526
* `http_get` and `http_post` makes HTTP requests to the web. Contrbuted by nakul-shahdadpuri
* `pop_matrix` and `pop_style` are alternatives to the context manager syntax used by previous version. Accordingly, `push_matrix` and `pop_matrix` can now both act as context managers and be directly called like in Processing or p5.js

The following additional signatures are added for compatibility with other Processing dialects

* `line(x1, y1, x2, y2)`
* `line(x1, y1, z1, x2, y2, z2)`
* `ellipse(a, b, c, d, mode=None)`
* `circle(x, y, radius, mode=None)`
* `arc(x, y, width, height, start_angle, stop_angle, mode=None, ellipse_mode=None)`
* `image(img, x, y)`
* `image(img, x, y, w, h)`
* `triangle(x1, y1, x2, y2, x3, y3)`
* `quad(x1, y1, x2, y2, x3, y3, x4, y4)`
* `rect(x, y, w, h)`
* `square(x, y, side_length)`
* `bezier(x1, y1, x2, y2, x3, y3, x4, y4)`
* `bezier(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4)`
* `curve(x1, y1, x2, y2, x3, y3, x4, y4)`
* `curve(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4)`
* `camera(position_x, position_y, position_z, target_x, target_y, target_z, up_x, up_y, up_z)`
* `camera(position, target_position, up_vector)`
* `text(text_string, x, y)`
* `text(text_string, x, y, z)`

The following functions can now take floats and tuples of arbitrary length

* `bezier_point`
* `bezier_tangent`
* `curve_point`
* `curve_tangent`
* `quadratic_point`

List of issues fixed in this release

* 186 begin_shape('POINTS') does not draw points
* 161 Cant use stroke_weight for points
* 238 Point shape causing concatenate error
* 171 Add support for pop syntax

This release includes contributions from nakul-shahdadpuri, tushar5526, and parsoyaarihant. Thank you!

0.7.0

We are happy to announce another developmental release from Google Summer of Code! This release includes bug fixes, a refactored rendering pipeline with improved performance, new 3D capabilities, and new example code.

List of New APIs

* New materials in P3D
* `normal_material` assigns a color to a pixel solely based on the normal vector of the fragment being rendered. Useful for debugging
* `basic_material` returns a uniform color.
* `blinn_phong_material` is a material based on the Blinn-Phong reflection model. This is the most “realistic” material in p5py. Parameters to adjust it include
* `ambient` is the color that interacts with `ambient_lights`
* `diffuse/emissive` is the surface color that interacts with `point_light`s and `directional_light`s
* `specular` is the highlight color that interacts with `point_light`s and `directional_light`s
* `shininess` determines how glossy a surface is
* Lighting system in P3D
* `lights` creates default lights
* `ambient_light` is a light that's uniform everywhere
* `directional_light` comes from one direction: it is stronger when hitting a surface squarely, and weaker if it hits at a gentle angle.
* `point_light` comes from one location and emits to all directions.
* `light_specular` controls the color of the specular highlight
* `light_falloff` controls how fast a light fades with distance

List of issues fixed in this release

* 31 Implement saveFrame()
* 155 Output canvas to video or sequence of png's
* 156 push_matrix() and pop_matrix() not working
* 158 no_loop incorrectly allows an extra draw frame
* 172 begin_contour and end_contour not working
* 175 no_loop() when used in setup() don't call draw() but it should call draw() only once
* 152 Occlusion of shapes in 3D Mode
* 180 Tutorial wrong? pop_matrix() does nothing, but should be refered as reset_matrix() instead
* 167 end_shape() is closing shapes without 'CLOSE'
* 188 Inconsistent behavior for Arc
* 195 Not able to create holes in a shape using begin and end contour
* 201 remap map to remap
* 141 AttributeError: 'Geometry' object has no attribute 'children'
* 173 The quest for better tessellation
* 183 Scalling with scale(1,0) does nothing. but scale(0,1) works
* 217 Bug: Does not install or get the shaders directory
* 213 Add support for renderer attribute in run() function
* 222 Update installation scripts
* 174 Add 3D material and lighting APIs
* 66 VS Code + pylint integration with p5

This release also includes contributions from parsoyaarihant, jeremydouglass, tushar5526, Hansimov, ReneTC, Andy-Python-Programmer, and galaxyproduction. Thank you!

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.