Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
eeemoon committed Dec 30, 2023
1 parent 1bcb096 commit 00b75b5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/harmony.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from pinkie import Color


color = Color('ff526c')

# color schemes
print("Complementary:", color.complementary().hex)
print("Split complementary:", *(i.hex for i in color.split_complementary()))
print("Triadic:", *(i.hex for i in color.triadic()))
print("Tetradic:", *(i.hex for i in color.tetradic()))
print("Analogous:", *(i.hex for i in color.analogous()))

# other methods
print("Closest:", color.closest([Color('4fc10a'), Color('bb57a2')]).hex)

0 comments on commit 00b75b5

Please sign in to comment.