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

Uploaded Python 3

File details

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

File metadata

  • Download URL: termoscart-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d9bea7534700f12158bcc00e2ff9d01adbf8318849d9c0b6e8cbc55f725afb0b
MD5 f17a424d560c51b7f1dac15353e77f7f
BLAKE2b-256 310ef21e8c1a4350ecd21cd3f12bfbbf91764e5a9f2884cf85e435a1b12f772b

See more details on using hashes here.

Provenance

The following attestation bundles were made for termoscart-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: termoscart-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eadbdc09149efda11f88702f64c6bba5e029c2a62fe1ba4eda4c340086e04e8f
MD5 6fe68f208e4becbc2531207680055bfb
BLAKE2b-256 2a118feafe4e60996cd4ea7d52aa4a9684feecf2cf53ff5d54fdeb5017dd4b65

See more details on using hashes here.

Provenance

The following attestation bundles were made for termoscart-0.1.1-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