Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add The Tortured Poets Department colors #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Includes color maps based on the following albums:
+ Midnights (`midnights`, `midnights_r`)
+ Speak Now: Taylor's Version (`speak_now_tv`, `speak_now_tv_r`)
+ 1989: Taylor's Version (nineteen_eighty_nine_tv, nineteen_eighty_nine_tv_r)
+ The Tortured Poets Department (`the_tortured_poets_department`, `the_tortured_poets_department_r`)

License: LGPLv3
Author: Josh Borrow ([email protected])
Expand Down
4 changes: 4 additions & 0 deletions swiftascmaps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
+ Midnights (midnights, midnights_r)
+ Speak Now: Taylor's Version (speak_now_tv, speak_now_rv_r)
+ 1989: Taylor's Version (nineteen_eighty_nine_tv, nineteen_eighty_nine_tv_r)
+ The Tortured Poets Department (`the_tortured_poets_department`, `the_tortured_poets_department_r`)

License: LGPLv3
Author: Josh Borrow ([email protected])
Expand Down Expand Up @@ -55,3 +56,6 @@
nineteen_eighty_nine_tv, nineteen_eighty_nine_tv_r = make_custom_cmap(
"nineteen_eighty_nine_tv", colors.nineteen_eighty_nine_tv
)
the_tortured_poets_department, the_tortured_r_poets_department = make_custom_cmap(
"the_tortured_poets_department", colors.the_tortured_poets_department
)
9 changes: 9 additions & 0 deletions swiftascmaps/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,12 @@
nineteen_eighty_nine_tv = hex_to_rgb(
["#3A1F16", "#C13C25", "#D7AB8A", "#FBFAF8", "#7EA7C5", "#446D8D", "#1F2D3B"]
)

the_tortured_poets_department = hex_to_rgb(
[
"#5C5854",
"#BDAE95",
"#C7C2B9",
"#EFECE8",
]
)
3 changes: 2 additions & 1 deletion test_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def plot_color_gradients(category, cmap_list):
"swift.fearless_tv",
"swift.midnights",
"swift.speak_now_tv",
"swift.nineteen_eighty_nine_tv"
"swift.nineteen_eighty_nine_tv",
"swift.the_tortured_poets_department"
]
)

Expand Down