Skip to main content

This library can be used to generate points that, when plotted, form letters. The height and spacing can be set.

Project description

This package is useful to generate points that, when plotted, form letters. The only function is write_text(), and it works with the following parameters:

write_text(string, height, distance_between_points, symbol_spacing = None, line_spacing = None, rotateAroundCenter = 0, filename = None):

string - the text meant to be plotted, can be of any length; the accepted symbols are A-Z, 0-9, !, ?, and \n. All lowercase letters are converted to uppercase.

height - the height that the symbols should have; all symbols are of width 0.4*height, except ! - than one has width 0.2*height

distance_between_points - the distance between the points that will be generated

symbol_spacing - the distance between symbols; if None, it will be set to height/10

line_spacing - the distance between lines; if None, it will be set to height/10

rotateAroundCenter - the angle by which the symbols should be rotated around their center point

filename - a string; this will be the name of the csv output file (you don't have to add the .csv extension in the name); default value is None, and for that no output file is generated

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lettersPoints-0.9.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lettersPoints-0.9-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file lettersPoints-0.9.tar.gz.

File metadata

  • Download URL: lettersPoints-0.9.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.9.0

File hashes

Hashes for lettersPoints-0.9.tar.gz
Algorithm Hash digest
SHA256 87af63a80619f6a18b3e8289fdae835f0de5a06b25fd7339f8cde39ae118bd51
MD5 d3346a7379be742bddaa46f19055bc70
BLAKE2b-256 790946bd509f86795a6634a2e311941f86c741b1587bee6f16264816e7bd0f98

See more details on using hashes here.

File details

Details for the file lettersPoints-0.9-py3-none-any.whl.

File metadata

  • Download URL: lettersPoints-0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.9.0

File hashes

Hashes for lettersPoints-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 bd3800cbba3579b6354f8d68fa2a861765152147afb5dbac3ad2ccadec114c76
MD5 1cda7fcdcef32bfcda190023c0e9850b
BLAKE2b-256 e8d7f4ec20b58af37fb63b2b04f8b80794b73e73843f62b2c431c23ef794eecf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page