Skip to main content

Terminal Oscilloscope Art - Bringing beautiful, animated curves to the command line

Project description

termoscart

A CLI tool to draw beautiful (animated) curves in the terminal.

termoscart

Created with

termoscart -r 5000 -l bright-cyan -b black -f 1 -g bright-green lissajous -a 6 -b 7

Usage

usage: termoscart [-h] [--settings] [-p <seconds>] [-r <res>]
                  [-R <width/height>] [-s <char>] [-l <color>] [-b <color>]
                  [-g <color>] [-G] [-f <frame>]
                  {lissajous,lissajous2,sine} ...

positional arguments:
  {lissajous,lissajous2,sine}

optional arguments:
  -h, --help            show this help message and exit
  --settings            shows information about the rect-ratio and colors
                        (default: False)
  -p <seconds>, --period <seconds>
                        time in seconds, until the figure finishes 1 cycle
                        (f=1/T) (default: 3)
  -r <res>, --resolution <res>
                        delta between two points (default: 100)
  -R <width/height>, --rect-ratio <width/height>
                        ratio of width/height (depending on the font, needed
                        that a circle appears like a circle and not like an
                        ellipse) (default: 0.5)
  -s <char>, --symbol <char>
                        symbol for the curve (default: '#')
  -l <color>, --line-color <color>
                        color of the curve (default: None)
  -b <color>, --background-color <color>
                        color of the background (default: None)
  -g <color>, --grid-color <color>
                        color of the grid (default: None)
  -G, --grid            enables grid (default: False)
  -f <frame>, --frame <frame>
                        shows the curve at a certain frame without animation,
                        value must be between -1 and 1 (default: None)

LISSAJOUS
usage: termoscart lissajous [-h] [-a <a>] [-b <b>]

x(t, d) = sin(a*t + d), y(t) = sin(b*t)

optional arguments:
  -h, --help  show this help message and exit
  -a <a>      a in the ratio 'a/b' (default: 2)
  -b <b>      b in the ratio 'a/b' (default: 3)

LISSAJOUS2
usage: termoscart lissajous2 [-h] [-b <b>] [-n <n>]

x(t, a) = sin(a*t + d), y(t) = sin(b*t), increase the ratio 'a/b' from 0 to n

optional arguments:
  -h, --help  show this help message and exit
  -b <b>      b in the ratio 'a/b', defines the number of waves (default: 4)
  -n <n>      end for ratio 'a/b' (default: 1)

SINE
usage: termoscart sine [-h] [-A <A>] [-f <f>]

x(t) = t, y(t) = A*sin(2*pi*f*t)

optional arguments:
  -h, --help  show this help message and exit
  -A <A>      amplitude A (default: 1)
  -f <f>      frequency f (default: 1)

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

termoscart-0.1.2.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

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

termoscart-0.1.2-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file termoscart-0.1.2.tar.gz.

File metadata

  • Download URL: termoscart-0.1.2.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for termoscart-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5fd8c182e7290e34a12d1058a68160df408457f027ff4dc050ee4a2356527f71
MD5 d43d4195037d159aabb6b9773c7ef8b7
BLAKE2b-256 8dd3d652c68290cca2c6540fcfd63b3d8626e31ead5743e21ca0845cb8d6e386

See more details on using hashes here.

Provenance

The following attestation bundles were made for termoscart-0.1.2.tar.gz:

Publisher: cd.yml on kvnglb/termoscart

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file termoscart-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: termoscart-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for termoscart-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dee0e4ecaedecb812b228e01ea7abcda087ccd46c6eac9eabadd309e205cc6bb
MD5 ed19d577804b11b4a53c9a56575b8ff1
BLAKE2b-256 2adeab0d41ea8d56281dd1eb2ee6b4f1926cf863757d30a5303095cf7211bb69

See more details on using hashes here.

Provenance

The following attestation bundles were made for termoscart-0.1.2-py3-none-any.whl:

Publisher: cd.yml on kvnglb/termoscart

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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