v0.5.0 2018-09-27
Added
Users
- New Image object
LayeredImage
object that can now draw more
than one object - Added an introductory tutorial for first time users to the documentation
- Functions from the
stylo.domain.transform
package can now be applied
to shapes, meaning that most images can now be made without handling domains
directly.
Contributors
- Added a
Drawable
class, this allows a domain, shape and colormap to
be treated as a single entity. - Added a
render_drawable
function that takes a drawable and some
existing image data and applies it to the data. - Added a
get_real_domain
function that given a width, height and scale
returns aRectangularDomain
with appropriate aspect ratio,
:math:(0, 0)
at the centre of the image and the scale corresponding to the
interval :math:[ymin, ymax]
- We now make use of the
[scripts]
section ofPipfile
so
running common commands is now easier to rememberpipenv run test
: to run the test suitepipenv run lint
: to lint the codebasepipenv run docs
: to run a full build of the documentationpipenv run docs_fast
: to run a less complete but faster build of
the documentation.
Changed
Users
- Altered
SimpleImage
to no longer take a domain, reducing the
cognitive load on first time users. It now instead takes an optional
scale
variable to control the size of the domain underneath. This
also means that the domain now automatically matches the aspect ratio of the
image so no more distortion in non-square images.
Contributors
- The tests now take advantage of multi-core machines and should now run much
faster - Building the docs now takes advantage of multi-core machines and should now
run much faster.
Fixed
Contributors
- Fixed crashes in
exampledoc.py
andapidoc.py
for first time
users - Fixed issue with
sed
on a Mac for people running the
devenv-setup.sh
script
This release of stylo
was brought to you thanks to contributions from
the following awesome people!