Stylo

Latest version: v0.9.3

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

Scan your dependencies

Page 1 of 3

0.9.3

-------------------

Changed
^^^^^^^

- When adding layers the :code:`LayeredImage` now accepts the color as a
string automatically converting it to a :code:`FillColor` behind the scenes.

0.9.2

-------------------

Changed
^^^^^^^

- Most commonly used objects have been imported into the top level namespace.
This means that it is now possible to write code like the following.

.. code-block:: python

import stylo as st

black = st.FillColor()
circle = st.Circle(fill=True)

image = st.SimpleImage(circle, black)

- The way stylo has been packaged has been changed. It now comes with a couple
of "extras". Instead of requiring dependencies for everything, the default
installation now only contains the packages that are absolutely required to
run stylo.

The other dependencies have been split into a couple of extras

+ :code:`testing`: The dependencies required to import items from the
`stylo.testing` package.
+ :code:`jupyer`: Dependencies required to use stylo interactively in a
jupyter notebook.

0.9.1

-------------------

There are no changes.

This release is a test to ensure that internal changes to how :code:`stylo` is
packaged and deployed are working correctly.

0.9.0

-------------------

Added
^^^^^

- New :code:`stylo.math` module! Currently it contains a :code:`lerp`
function to do linear implementation between two values :code:`a` and
:code:`b`
- New :code:`stylo.design` module! This is the start of the "next level" in
styo's API abstracting away from the lower level objects such as shapes and
colormaps.

- This module adds the notion of a parameter group, this is a collection of
values that can be passed into functions as a single object using the
dictionary unpacking syntax (:code:`**params`)

Parameter groups are defined using the :code:`define_parameter_group`
function and taking a name and a comma separated string of parameter names.
There is also :code:`define_time_dependent_parameter_group` that can be
used to define a parameter group that depends on time.

Currently there are two pre-defined paramters groups, :code:`Position` and
:code:`Trajectory`. They both combine the :code:`x` and :code:`y` values
into a single object, with the second being the time dependent version of
the first.

Finally there are two built-in implementations of these parameter groups.
:code:`StaticPosition` and :code:`ParametricPosition` the first takes two
values and returns them. The second takes two functions in time and calls
them at each supplied time value.

0.8.0

-------------------

Added
^^^^^

- New :code:`Timeline` system! This finally introduces explicit support for
animations to :code:`stylo.`

0.7.0

-------------------

Added
^^^^^

- New :code:`Line` shape!
- New :code:`ImplicitXY` shape! Draw any curve that is implicitly defined by a
function :math:`f(x, y)`

Changed
^^^^^^^

- The :code:`Circle` and :code:`Ellipse` shapes now take more arguments. By
default the shapes will now draw an outline rather than a filled in shape.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.