Skip to main content

View part of your screen in monochrome colors or in simulated protanopia, deuteranopia, or tritanopia

Project description

monolens

View part of your screen in grayscale or filtered to simulate color vision deficiency.

Watch the demo on YouTube.

Install with pip install monolens and then run monolens in a terminal or do it in one command with or pipx run monolens.

Monolens was featured on Twitter by Matthew Feickert and Matplotlib, and picked up in this episode of Python Bytes. Thanks, guys!

Usage

  • Drag the lens around by holding a Mouse button down inside the window
  • Press Escape, Q, or double click on the lens to quit
  • Press up, down, left, right to resize the lens
  • Press Tab to switch between greyscale and different forms of simulated colorblindness
  • Press I to switch view label on/off
  • Press M to move the lens to another screen

On OSX, you need to give Monolens permission to make screenshots, which is safe.

Known limitations

  • The app is tested on OSX and Linux. It may flicker when you move the lens (less so on OSX). If you know how to fix this, please help. :)
  • Pulling the lens to another screen is currently not supported. See usage on how to switch screens instead.
  • The lens actually uses a static screenshot which is updated as you move the lens around. This trick is necessary, because an app cannot read the pixels under its own window. Because of this, the pixels under the app are only updated when you move the lens away first and then back. This is also the reason why the lens only works for static images.
  • On OSX, an ordinary app is not allowed to read pixels outside of its window for security reasons, which is why this app needs special permissions. Giving permissions is safe; Monolens contains no networking code and will neither store nor send your pixels anywhere.

Future plans

  • Support gestures to rescale the lens (pinch etc)

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

monolens-0.7.2.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

monolens-0.7.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file monolens-0.7.2.tar.gz.

File metadata

  • Download URL: monolens-0.7.2.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for monolens-0.7.2.tar.gz
Algorithm Hash digest
SHA256 6a44ed27c45a13f0f99f37fad0aa83ceb19b07aa786fe71397b3e64bee3b2d47
MD5 4941492adf6fa55e5dcca6dd87660aa7
BLAKE2b-256 eba2dfd304552541344d51ba29ebdfb88a2ba5d29207e2004ee85a50605ac506

See more details on using hashes here.

File details

Details for the file monolens-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: monolens-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

File hashes

Hashes for monolens-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d2d53ae7c68b07bb08e0ca42a40e8111e759b8cbf01af2a428511fd1202a472
MD5 d6e481a93758a28d3143b3a6cc2271e9
BLAKE2b-256 dbdfa0610ee61ad468364da5f23f2e6583b6d7459acb0d6d4529df9b8896cbde

See more details on using hashes here.

Supported by

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