Skip to content

Commit

Permalink
Issue #100 added some preset colours
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson318 committed Jul 6, 2022
1 parent d790789 commit 8be3526
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions sksurgerybard/visualisation/colours.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
"""
Preset colours for Athena's luminance study
"""

# from here
# Grayscale Design palette: https://grayscale.design/app?lums=100.00,88.89,77.78,66.67,55.56,44.44,33.33,22.22,11.11,0.00&palettes=%23ffff00,%2300ff00&filters=0%7C0,0%7C0&names=Yellow,Greeen&labels=,

#lets create dictionaries we can use of pre set colours
{
"grayscale": {
"50": "rgb(255, 255, 255)",
"100": "rgb(242, 242, 242)",
"200": "rgb(228, 228, 228)",
"300": "rgb(213, 213, 213)",
"400": "rgb(197, 197, 197)",
"500": "rgb(178, 178, 178)",
"600": "rgb(156, 156, 156)",
"700": "rgb(130, 130, 130)",
"800": "rgb(94, 94, 94)",
"900": "rgb(0, 0, 0)"
},
"Yellow": {
"50": "rgb(255, 255, 255)",
"100": "rgb(250, 250, 0)",
"200": "rgb(236, 236, 0)",
"300": "rgb(220, 220, 0)",
"400": "rgb(203, 203, 0)",
"500": "rgb(184, 184, 0)",
"600": "rgb(162, 162, 0)",
"700": "rgb(134, 134, 0)",
"800": "rgb(97, 97, 0)",
"900": "rgb(0, 0, 0)"
},
"Greeen": {
"50": "rgb(255, 255, 255)",
"100": "rgb(205, 255, 205)",
"200": "rgb(129, 255, 129)",
"300": "rgb(0, 247, 0)",
"400": "rgb(0, 228, 0)",
"500": "rgb(0, 207, 0)",
"600": "rgb(0, 182, 0)",
"700": "rgb(0, 151, 0)",
"800": "rgb(0, 110, 0)",
"900": "rgb(0, 0, 0)"
}
}

0 comments on commit 8be3526

Please sign in to comment.