Skip to content

Commit

Permalink
color.py: Some touchup
Browse files Browse the repository at this point in the history
  • Loading branch information
iguessthislldo committed Nov 3, 2019
1 parent b5889bb commit 94799fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions color.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# 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):
return "#{:06x}".format(color)

mask = 0xFFFFFF
color = randint(0, mask)
invert = (~color)&mask
invert = (~color) & mask
print("-fill {} -background {}".format(fmt(color), fmt(invert)))

0 comments on commit 94799fe

Please sign in to comment.