Skip to main content

HANDD

HAND-Drawn like Context extension for pycairo

Installation

pip3 install handd

Dependancy:

  • pycairo

The new Context methods

classmethod

  • HDD.is_in(x, y, closed_path)

methods on tuple lists

  • hdd.lline_hdd(xy) (return points list used to draw Bezier line)
  • hdd.lpolygon_hdd(xy) (returns (p, bb) path and bounding box)
  • hdd.lround_point_hdd(xy)
  • hdd.lpoint_hdd(xy, radius=5)

basic figures methods

  • hdd.rectangle_hdd(x, y, w, h) (returns (p, bb) path and bounding box)
  • hdd.regular_polygon_hdd(x, y, radius, n_sides, angle=0) (returns (p, bb) path and bounding box)
  • hdd.disc_hdd(x, y, radius, a_start, a_end=None) (returns (p, bb) path and bounding box)
  • hdd.sector_hdd(x, y, radius, a_start, a_end, dev=3) (returns (p, bb) path and bounding box)
  • hdd.arc_hdd(x, y, radius, a_start, a_end, dev=3) (returns (p, bb) path and bounding box)
  • hdd.real_circle_hdd(x, y, radius, step=.005) (returns (p, bb) path and bounding box)
  • hdd.circle_hdd(x, y, radius, dev=3, step=.01) (returns (p, bb) path and bounding box)

various methods

  • hdd.hatch_hdd(path, bbox, n=10, angle=math.pi / 4, condition=lambda x, y: True)
  • hdd.dot_hdd(path, bbox, sep=5)
  • hdd.axes_hdd(x, y, units=None)
  • hdd.function_hdd(f, xmin, xmax, n=15)
  • hdd.data_hdd(a_file) (functionnality actually not tested)

Images from examples (see tests section)

test1

test2

test4_svg

test5

test6

test7

test8

catriona17

catriona38

catriona57

Catriona figures from Catriona Shearer's book "geometry puzzle"

2022-2024 / D. COBAC / CC-BY-NC-SA

Metadata

Release files for handd 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for handd 0.1.3
File Size Uploaded Provenance
handd-0.1.3.tar.gz 14.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for handd 0.1.3
File Interpreter ABI Platform
handd-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 22.1 kB

Release files / handd-0.1.3.tar.gz

Download URL handd-0.1.3.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
954b177bcc95465c057aab5c5760e990fde996ffd8ad8eb71676de2f5cfcdb77
BLAKE2b-256 checksum
How to use checksums
fecae50340b9097843b72699484fa3cccdded2a2fd2454a89bd2504223d52d80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / handd-0.1.3-py3-none-any.whl

Download URL handd-0.1.3-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9aa699b55d0227448ee2c0425b0517c00dbe7607515ce6f1e4dacb2bf4de2c7e
BLAKE2b-256 checksum
How to use checksums
05c75c319855cf1a8fff20bfd826d2e94b17ce0c112cf84074a5c15f45b97724
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for handd 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page