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.7.tar.gz (5.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: lettersPoints-0.7.tar.gz
  • Upload date:
  • Size: 5.6 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.61.0 CPython/3.9.0

File hashes

Hashes for lettersPoints-0.7.tar.gz
Algorithm Hash digest
SHA256 e3d28d8f4ec9b903b22837a2163b5cc00dfc5234247d5fb1a4ec58d25ff5d0b0
MD5 0b698d28b11311f9cf2f83173034f0af
BLAKE2b-256 021bb0c2b9f88e328516ae5fc47f46a6b36168da0374cf4326ff51834fd81ece

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