From 94799fe478f4fb3f8365765f393401214682c071 Mon Sep 17 00:00:00 2001 From: Fred Hornsey Date: Sun, 3 Nov 2019 17:47:48 -0600 Subject: [PATCH] color.py: Some touchup --- color.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/color.py b/color.py index 868d02d..c63b027 100644 --- a/color.py +++ b/color.py @@ -1,4 +1,4 @@ -# Generate a Random Color and it's invert for Image Magik convert +# Generate a Random Color and its invert for Image Magik convert from random import randint def fmt(color): @@ -6,6 +6,5 @@ def fmt(color): mask = 0xFFFFFF color = randint(0, mask) -invert = (~color)&mask +invert = (~color) & mask print("-fill {} -background {}".format(fmt(color), fmt(invert))) -