+
Skip to content

v-amorim/hex_to_ansi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyQt6 Hex to ANSI

A simple Hex Color to ANSI Code equivalent color, written in Python using PyQt6.

demo

Features

  • Color Picker
  • Closest ANSI code to the selected color
    • Code in the '5' pattern, the 256 ANSI
    • Code in the '2' pattern, the RGB ANSI
  • Closest Dark and Light color to the selected color
  • Closest Grayscale color to the selected color
  • Modifiers for the selected color
    • Color modifiers:
      • Foreground
      • Background
    • Text modifiers:
      • Bold
      • Dim
      • Italic
      • Underline
      • Blinking
      • Inverse
      • Invisible/Hidden
      • Strikethrough

Screenshots

GUI in its initial state Color Picker
default_gui color_picker
GUI with a color selected GUI with a color selected and modifiers
color_selected color_modifiers

The logic behind the conversion is based on the one used here.

Setup

Install uv:

pip install uv

Run the app:

uv run hex_to_ansi.pyw

About

A simple Hex Color to ANSI Code equivalent color, written in Python using PyQt6.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载