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.8.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.8-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lettersPoints-0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 c732b3571eae1127804ee35657878e4ac6fa94446e1eb2e0bd86f5f2cc428227
MD5 f2ea213a4d8d58f8062fb987b6a73410
BLAKE2b-256 b5c1e37ab1a1967e7095187d2d5eeb61669f24b7a18db7fe9596adaa33cb6734

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lettersPoints-0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 06965e0cba9d75535fd98301fb852a0ab5351c4c2a1af8540e8a75bd2fe88b7d
MD5 ddf0ba77d3ff1fb4f322909e4112ead6
BLAKE2b-256 553c8646d050794e9bbbbe3109f06f9e8fdb85461c6fb8c3398be06b53d2ab97

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