Color getter (including method to get random color or complementary color) made out of Python

Overview

python-color-getter

Color getter (including method to get random color or complementary color) made out of Python

Setup

pip3 install git+https://github.com/yjg30737/python-color-getter.git --upgrade

Method Overview

  • get_random_color() -> tuple
  • get_color_from_stylesheet(code: str) -> None
  • get_complementary_color(r: int, g: int, b: int) -> tuple

Example

Code Sample

print(PythonColorGetter.get_random_color())
print(PythonColorGetter.get_complementary_color(255, 0, 0))

Result

(211, 195, 123)
(0, 255, 255)
You might also like...
Let's renew the puzzle collection. We'll produce a collection of new puzzles out of the lichess game database.

Let's renew the puzzle collection. We'll produce a collection of new puzzles out of the lichess game database.

 Genart - Generate random art to sell as nfts
Genart - Generate random art to sell as nfts

Genart - Generate random art to sell as nfts Usage git clone

Random Number Generator

Application for generating a random number.

Generates a random prnt.sc link and display image.

Generates a random prnt.sc link and display image.

Generate random german words
Generate random german words

Generate random german words / Generiere zufällige deutsche Wörter Getting Started Pip install with pip install zufallsworte Install the library with

Go through a random file in your favourite open source projects!

Random Source Codes Never be bored again! Staring at your screen and just scrolling the great world wide web? Would you rather read through some code

Backman is a random/fixed background image setter for wlroots based compositors

backman Backman is a random/fixed background image setter for wlroots based compositors Dependencies: The program depends on swaybg, python3-toml (or

A quick random name generator

Random Profile Generator USAGE & CREDITS Any public or priavte demonstrative usage of this project is strictly prohibited, UNLESS WhineyMonkey10 (http

Create password - Generate Random Password with Passphrase

Generate Random Password with Passphrase This is a python code to generate stron

Owner
Jung Gyu Yoon
Make things easier, Make life better.
Jung Gyu Yoon
A simple Python app that generates semi-random chord progressions.

chords-generator A simple Python app that generates semi-random chord progressions.

null 53 Sep 7, 2022
Python program to do with percentages and chances, random generation.

Chances and Percentages Python program to do with percentages and chances, random generation. What is this? This small program will generate a list wi

n0 3 Jul 15, 2021
Simple Python tool that generates a pseudo-random password with numbers, letters, and special characters in accordance with password policy best practices.

Simple Python tool that generates a pseudo-random password with numbers, letters, and special characters in accordance with password policy best practices.

Joe Helle 7 Mar 25, 2022
A random cats photos python module

A random cats photos python module

Fayas Noushad 6 Dec 1, 2021
A python lib for generate random string and digits and special characters or A combination of them

A python lib for generate random string and digits and special characters or A combination of them

Torham 4 Nov 15, 2022
An okayish python script to generate a random Euler circuit with given number of vertices and edges.

Euler-Circuit-Test-Case-Generator An okayish python script to generate a random Euler circuit with given number of vertices and edges. Executing the S

Alen Antony 1 Nov 13, 2021
A simple and easy to use collection of random python functions.

A simple and easy to use collection of random python functions.

Diwan Mohamed Faheer 1 Nov 17, 2021
Random Number Generator Analysis With Python

Random-Number-Generator-Analysis Governor's Honors Program Project to determine

Jack Prewitt 2 Jan 23, 2022
Python Random Number Genrator

This Genrates Random Numbers. This Random Number Generator was made using python. This software uses Time and Random extension. Download the EXE file and run it to get your answer.

Krish Sethi 2 Feb 3, 2022
Dice Rolling Simulator using Python-random

Dice Rolling Simulator As the name of the program suggests, we will be imitating a rolling dice. This is one of the interesting python projects and wi

PyLaboratory 1 Feb 2, 2022