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

refactor colour into color for colours.dm #5339

Closed
Closed
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
344 changes: 172 additions & 172 deletions code/__DEFINES/colours.dm
Original file line number Diff line number Diff line change
@@ -1,213 +1,213 @@
// tg port thing

//different types of atom colourations
/// Only used by rare effects like greentext colouring mobs and when admins varedit color
#define ADMIN_COLOUR_PRIORITY 1
//different types of atom colorations
/// Only used by rare effects like greentext coloring mobs and when admins varedit color
#define ADMIN_COLOR_PRIORITY 1
/// e.g. purple effect of the revenant on a mob, black effect when mob electrocuted
#define TEMPORARY_COLOUR_PRIORITY 2
/// Colour splashed onto an atom (e.g. paint on turf)
#define WASHABLE_COLOUR_PRIORITY 3
/// Colour inherent to the atom (e.g. blob color)
#define FIXED_COLOUR_PRIORITY 4
#define TEMPORARY_COLOR_PRIORITY 2
/// color splashed onto an atom (e.g. paint on turf)
#define WASHABLE_COLOR_PRIORITY 3
/// color inherent to the atom (e.g. blob color)
#define FIXED_COLOR_PRIORITY 4
///how many color priority levels there are.
#define COLOUR_PRIORITY_AMOUNT 4

#define COLOUR_DARKMODE_BACKGROUND "#202020"
#define COLOUR_DARKMODE_DARKBACKGROUND "#171717"
#define COLOUR_DARKMODE_TEXT "#a4bad6"

#define COLOUR_WHITE "#FFFFFF"
#define COLOUR_VERY_LIGHT_GRAY "#EEEEEE"
#define COLOUR_SILVER "#C0C0C0"
#define COLOUR_GRAY "#808080"
#define COLOUR_FLOORTILE_GRAY "#8D8B8B"
#define COLOUR_DARK "#454545"
#define COLOUR_ALMOST_BLACK "#333333"
#define COLOUR_BLACK "#000000"
#define COLOUR_HALF_TRANSPARENT_BLACK "#0000007A"

#define COLOUR_RED "#FF0000"
#define COLOUR_MOSTLY_PURE_RED "#FF3300"
#define COLOUR_DARK_RED "#A50824"
#define COLOUR_RED_LIGHT "#FF3333"
#define COLOUR_MAROON "#800000"
#define COLOUR_VIVID_RED "#FF3232"
#define COLOUR_LIGHT_GRAYISH_RED "#E4C7C5"
#define COLOUR_SOFT_RED "#FA8282"
#define COLOUR_CULT_RED "#960000"
#define COLOUR_BUBBLEGUM_RED "#950A0A"

#define COLOUR_YELLOW "#FFFF00"
#define COLOUR_VIVID_YELLOW "#FBFF23"
#define COLOUR_VERY_SOFT_YELLOW "#FAE48E"

#define COLOUR_OLIVE "#808000"
#define COLOUR_VIBRANT_LIME "#00FF00"
#define COLOUR_LIME "#32CD32"
#define COLOUR_DARK_LIME "#00aa00"
#define COLOUR_VERY_PALE_LIME_GREEN "#DDFFD3"
#define COLOUR_VERY_DARK_LIME_GREEN "#003300"
#define COLOUR_GREEN "#008000"
#define COLOUR_DARK_MODERATE_LIME_GREEN "#44964A"

#define COLOUR_CYAN "#00FFFF"
#define COLOUR_DARK_CYAN "#00A2FF"
#define COLOUR_TEAL "#008080"
#define COLOUR_BLUE "#0000FF"
#define COLOUR_STRONG_BLUE "#1919c8"
#define COLOUR_BRIGHT_BLUE "#2CB2E8"
#define COLOUR_MODERATE_BLUE "#555CC2"
#define COLOUR_AMETHYST "#822BFF"
#define COLOUR_BLUE_LIGHT "#33CCFF"
#define COLOUR_NAVY "#000080"
#define COLOUR_BLUE_GRAY "#75A2BB"

#define COLOUR_PINK "#FFC0CB"
#define COLOUR_LIGHT_PINK "#ff3cc8"
#define COLOUR_MOSTLY_PURE_PINK "#E4005B"
#define COLOUR_BLUSH_PINK "#DE5D83"
#define COLOUR_MAGENTA "#FF00FF"
#define COLOUR_STRONG_MAGENTA "#B800B8"
#define COLOUR_PURPLE "#800080"
#define COLOUR_VIOLET "#B900F7"
#define COLOUR_STRONG_VIOLET "#6927c5"

#define COLOUR_ORANGE "#FF9900"
#define COLOUR_MOSTLY_PURE_ORANGE "#ff8000"
#define COLOUR_TAN_ORANGE "#FF7B00"
#define COLOUR_BRIGHT_ORANGE "#E2853D"
#define COLOUR_LIGHT_ORANGE "#ffc44d"
#define COLOUR_PALE_ORANGE "#FFBE9D"
#define COLOUR_BEIGE "#CEB689"
#define COLOUR_DARK_ORANGE "#C3630C"
#define COLOUR_DARK_MODERATE_ORANGE "#8B633B"

#define COLOUR_BROWN "#BA9F6D"
#define COLOUR_DARK_BROWN "#997C4F"
#define COLOUR_ORANGE_BROWN "#a9734f"

//Colour defines used by the soapstone (based on readability against grey tiles)
#define COLOUR_SOAPSTONE_PLASTIC "#a19d94"
#define COLOUR_SOAPSTONE_IRON "#b2b2b2"
#define COLOUR_SOAPSTONE_BRONZE "#FE8001"
#define COLOUR_SOAPSTONE_SILVER "#FFFFFF"
#define COLOUR_SOAPSTONE_GOLD "#FFD900"
#define COLOUR_SOAPSTONE_DIAMOND "#00ffee"

#define COLOUR_GREEN_GRAY "#99BB76"
#define COLOUR_RED_GRAY "#B4696A"
#define COLOUR_PALE_BLUE_GRAY "#98C5DF"
#define COLOUR_PALE_GREEN_GRAY "#B7D993"
#define COLOUR_PALE_RED_GRAY "#D59998"
#define COLOUR_PALE_PURPLE_GRAY "#CBB1CA"
#define COLOUR_PURPLE_GRAY "#AE8CA8"

//Colour defines used by the assembly detailer.
#define COLOUR_ASSEMBLY_BLACK "#545454"
#define COLOUR_ASSEMBLY_BGRAY "#9497AB"
#define COLOUR_ASSEMBLY_WHITE "#E2E2E2"
#define COLOUR_ASSEMBLY_RED "#CC4242"
#define COLOUR_ASSEMBLY_ORANGE "#E39751"
#define COLOUR_ASSEMBLY_BEIGE "#AF9366"
#define COLOUR_ASSEMBLY_BROWN "#97670E"
#define COLOUR_ASSEMBLY_GOLD "#AA9100"
#define COLOUR_ASSEMBLY_YELLOW "#CECA2B"
#define COLOUR_ASSEMBLY_GURKHA "#999875"
#define COLOUR_ASSEMBLY_LGREEN "#789876"
#define COLOUR_ASSEMBLY_GREEN "#44843C"
#define COLOUR_ASSEMBLY_LBLUE "#5D99BE"
#define COLOUR_ASSEMBLY_BLUE "#38559E"
#define COLOUR_ASSEMBLY_PURPLE "#6F6192"

///Colours for xenobiology vatgrowing
#define COLOUR_SAMPLE_YELLOW "#c0b823"
#define COLOUR_SAMPLE_PURPLE "#342941"
#define COLOUR_SAMPLE_GREEN "#98b944"
#define COLOUR_SAMPLE_BROWN "#91542d"
#define COLOUR_SAMPLE_GRAY "#5e5856"

///Main colours for UI themes
#define COLOUR_THEME_MIDNIGHT "#6086A0"
#define COLOUR_THEME_PLASMAFIRE "#FFB200"
#define COLOUR_THEME_RETRO "#24CA00"
#define COLOUR_THEME_SLIMECORE "#4FB259"
#define COLOUR_THEME_OPERATIVE "#B8221F"
#define COLOUR_THEME_GLASS "#75A4C4"
#define COLOUR_THEME_CLOCKWORK "#CFBA47"

///Colours for eigenstates
#define COLOUR_PERIWINKLEE "#9999FF"
#define COLOR_PRIORITY_AMOUNT 4

#define COLOR_DARKMODE_BACKGROUND "#202020"
#define COLOR_DARKMODE_DARKBACKGROUND "#171717"
#define COLOR_DARKMODE_TEXT "#a4bad6"

#define COLOR_WHITE "#FFFFFF"

Check warning on line 19 in code/__DEFINES/colours.dm

View workflow job for this annotation

GitHub Actions / Run Linters

macro redefined: COLOR_WHITE
#define COLOR_VERY_LIGHT_GRAY "#EEEEEE"
#define COLOR_SILVER "#C0C0C0"
#define COLOR_GRAY "#808080"
#define COLOR_FLOORTILE_GRAY "#8D8B8B"
#define COLOR_DARK "#454545"
#define COLOR_ALMOST_BLACK "#333333"
#define COLOR_BLACK "#000000"

Check warning on line 26 in code/__DEFINES/colours.dm

View workflow job for this annotation

GitHub Actions / Run Linters

macro redefined: COLOR_BLACK
#define COLOR_HALF_TRANSPARENT_BLACK "#0000007A"

#define COLOR_RED "#FF0000"

Check warning on line 29 in code/__DEFINES/colours.dm

View workflow job for this annotation

GitHub Actions / Run Linters

macro redefined: COLOR_RED
#define COLOR_MOSTLY_PURE_RED "#FF3300"
#define COLOR_DARK_RED "#A50824"
#define COLOR_RED_LIGHT "#FF3333"
#define COLOR_MAROON "#800000"
#define COLOR_VIVID_RED "#FF3232"
#define COLOR_LIGHT_GRAYISH_RED "#E4C7C5"
#define COLOR_SOFT_RED "#FA8282"
#define COLOR_CULT_RED "#960000"
#define COLOR_BUBBLEGUM_RED "#950A0A"

#define COLOR_YELLOW "#FFFF00"

Check warning on line 40 in code/__DEFINES/colours.dm

View workflow job for this annotation

GitHub Actions / Run Linters

macro redefined: COLOR_YELLOW
#define COLOR_VIVID_YELLOW "#FBFF23"
#define COLOR_VERY_SOFT_YELLOW "#FAE48E"

#define COLOR_OLIVE "#808000"
#define COLOR_VIBRANT_LIME "#00FF00"
#define COLOR_LIME "#32CD32"
#define COLOR_DARK_LIME "#00aa00"
#define COLOR_VERY_PALE_LIME_GREEN "#DDFFD3"
#define COLOR_VERY_DARK_LIME_GREEN "#003300"
#define COLOR_GREEN "#008000"

Check warning on line 50 in code/__DEFINES/colours.dm

View workflow job for this annotation

GitHub Actions / Run Linters

macro redefined: COLOR_GREEN
#define COLOR_DARK_MODERATE_LIME_GREEN "#44964A"

#define COLOR_CYAN "#00FFFF"

Check warning on line 53 in code/__DEFINES/colours.dm

View workflow job for this annotation

GitHub Actions / Run Linters

macro redefined: COLOR_CYAN
#define COLOR_DARK_CYAN "#00A2FF"
#define COLOR_TEAL "#008080"
#define COLOR_BLUE "#0000FF"

Check warning on line 56 in code/__DEFINES/colours.dm

View workflow job for this annotation

GitHub Actions / Run Linters

macro redefined: COLOR_BLUE
#define COLOR_STRONG_BLUE "#1919c8"
#define COLOR_BRIGHT_BLUE "#2CB2E8"
#define COLOR_MODERATE_BLUE "#555CC2"
#define COLOR_AMETHYST "#822BFF"
#define COLOR_BLUE_LIGHT "#33CCFF"
#define COLOR_NAVY "#000080"
#define COLOR_BLUE_GRAY "#75A2BB"

#define COLOR_PINK "#FFC0CB"

Check warning on line 65 in code/__DEFINES/colours.dm

View workflow job for this annotation

GitHub Actions / Run Linters

macro redefined: COLOR_PINK
#define COLOR_LIGHT_PINK "#ff3cc8"
#define COLOR_MOSTLY_PURE_PINK "#E4005B"
#define COLOR_BLUSH_PINK "#DE5D83"
#define COLOR_MAGENTA "#FF00FF"
#define COLOR_STRONG_MAGENTA "#B800B8"
#define COLOR_PURPLE "#800080"
#define COLOR_VIOLET "#B900F7"
#define COLOR_STRONG_VIOLET "#6927c5"

#define COLOR_ORANGE "#FF9900"

Check warning on line 75 in code/__DEFINES/colours.dm

View workflow job for this annotation

GitHub Actions / Run Linters

macro redefined: COLOR_ORANGE
#define COLOR_MOSTLY_PURE_ORANGE "#ff8000"
#define COLOR_TAN_ORANGE "#FF7B00"
#define COLOR_BRIGHT_ORANGE "#E2853D"
#define COLOR_LIGHT_ORANGE "#ffc44d"
#define COLOR_PALE_ORANGE "#FFBE9D"
#define COLOR_BEIGE "#CEB689"
#define COLOR_DARK_ORANGE "#C3630C"
#define COLOR_DARK_MODERATE_ORANGE "#8B633B"

#define COLOR_BROWN "#BA9F6D"
#define COLOR_DARK_BROWN "#997C4F"
#define COLOR_ORANGE_BROWN "#a9734f"

//color defines used by the soapstone (based on readability against grey tiles)
#define COLOR_SOAPSTONE_PLASTIC "#a19d94"
#define COLOR_SOAPSTONE_IRON "#b2b2b2"
#define COLOR_SOAPSTONE_BRONZE "#FE8001"
#define COLOR_SOAPSTONE_SILVER "#FFFFFF"
#define COLOR_SOAPSTONE_GOLD "#FFD900"
#define COLOR_SOAPSTONE_DIAMOND "#00ffee"

#define COLOR_GREEN_GRAY "#99BB76"
#define COLOR_RED_GRAY "#B4696A"
#define COLOR_PALE_BLUE_GRAY "#98C5DF"
#define COLOR_PALE_GREEN_GRAY "#B7D993"
#define COLOR_PALE_RED_GRAY "#D59998"
#define COLOR_PALE_PURPLE_GRAY "#CBB1CA"
#define COLOR_PURPLE_GRAY "#AE8CA8"

//color defines used by the assembly detailer.
#define COLOR_ASSEMBLY_BLACK "#545454"
#define COLOR_ASSEMBLY_BGRAY "#9497AB"
#define COLOR_ASSEMBLY_WHITE "#E2E2E2"
#define COLOR_ASSEMBLY_RED "#CC4242"
#define COLOR_ASSEMBLY_ORANGE "#E39751"
#define COLOR_ASSEMBLY_BEIGE "#AF9366"
#define COLOR_ASSEMBLY_BROWN "#97670E"
#define COLOR_ASSEMBLY_GOLD "#AA9100"
#define COLOR_ASSEMBLY_YELLOW "#CECA2B"
#define COLOR_ASSEMBLY_GURKHA "#999875"
#define COLOR_ASSEMBLY_LGREEN "#789876"
#define COLOR_ASSEMBLY_GREEN "#44843C"
#define COLOR_ASSEMBLY_LBLUE "#5D99BE"
#define COLOR_ASSEMBLY_BLUE "#38559E"
#define COLOR_ASSEMBLY_PURPLE "#6F6192"

///colors for xenobiology vatgrowing
#define COLOR_SAMPLE_YELLOW "#c0b823"
#define COLOR_SAMPLE_PURPLE "#342941"
#define COLOR_SAMPLE_GREEN "#98b944"
#define COLOR_SAMPLE_BROWN "#91542d"
#define COLOR_SAMPLE_GRAY "#5e5856"

///Main colors for UI themes
#define COLOR_THEME_MIDNIGHT "#6086A0"
#define COLOR_THEME_PLASMAFIRE "#FFB200"
#define COLOR_THEME_RETRO "#24CA00"
#define COLOR_THEME_SLIMECORE "#4FB259"
#define COLOR_THEME_OPERATIVE "#B8221F"
#define COLOR_THEME_GLASS "#75A4C4"
#define COLOR_THEME_CLOCKWORK "#CFBA47"

///colors for eigenstates
#define COLOR_PERIWINKLEE "#9999FF"
/**
* Some defines to generalise colours used in lighting.
* Some defines to generalise colors used in lighting.
*
* Important note: colours can end up significantly different from the basic html picture, especially when saturated
* Important note: colors can end up significantly different from the basic html picture, especially when saturated
*/

/// Full white. rgb(255, 255, 255)
#define LIGHT_COLOR_WHITE "#FFFFFF"
/// Bright but quickly dissipating neon green. rgb(100, 200, 100)
#define LIGHT_COLOUR_GREEN "#64C864"
#define LIGHT_COLOR_GREEN "#64C864"
/// Electric green. rgb(0, 255, 0)
#define LIGHT_COLOUR_ELECTRIC_GREEN "#00FF00"
#define LIGHT_COLOR_ELECTRIC_GREEN "#00FF00"
/// Cold, diluted blue. rgb(100, 150, 250)
#define LIGHT_COLOUR_BLUE "#6496FA"
#define LIGHT_COLOR_BLUE "#6496FA"
/// Light blueish green. rgb(125, 225, 175)
#define LIGHT_COLOUR_BLUEGREEN "#7DE1AF"
#define LIGHT_COLOR_BLUEGREEN "#7DE1AF"
/// Diluted cyan. rgb(125, 225, 225)
#define LIGHT_COLOUR_CYAN "#7DE1E1"
#define LIGHT_COLOR_CYAN "#7DE1E1"
/// Electric cyan rgb(0, 255, 255)
#define LIGHT_COLOUR_ELECTRIC_CYAN "#00FFFF"
#define LIGHT_COLOR_ELECTRIC_CYAN "#00FFFF"
/// More-saturated cyan. rgb(64, 206, 255)
#define LIGHT_COLOUR_LIGHT_CYAN "#40CEFF"
#define LIGHT_COLOR_LIGHT_CYAN "#40CEFF"
/// Saturated blue. rgb(51, 117, 248)
#define LIGHT_COLOUR_DARK_BLUE "#6496FA"
#define LIGHT_COLOR_DARK_BLUE "#6496FA"
/// Diluted, mid-warmth pink. rgb(225, 125, 225)
#define LIGHT_COLOUR_PINK "#E17DE1"
#define LIGHT_COLOR_PINK "#E17DE1"
/// Dimmed yellow, leaning kaki. rgb(225, 225, 125)
#define LIGHT_COLOUR_YELLOW "#E1E17D"
#define LIGHT_COLOR_YELLOW "#E1E17D"
/// Clear brown, mostly dim. rgb(150, 100, 50)
#define LIGHT_COLOUR_BROWN "#966432"
#define LIGHT_COLOR_BROWN "#966432"
/// Mostly pure orange. rgb(250, 150, 50)
#define LIGHT_COLOUR_ORANGE "#FA9632"
#define LIGHT_COLOR_ORANGE "#FA9632"
/// Light Purple. rgb(149, 44, 244)
#define LIGHT_COLOUR_PURPLE "#952CF4"
#define LIGHT_COLOR_PURPLE "#952CF4"
/// Less-saturated light purple. rgb(155, 81, 255)
#define LIGHT_COLOUR_LAVENDER "#9B51FF"
#define LIGHT_COLOR_LAVENDER "#9B51FF"
///slightly desaturated bright yellow.
#define LIGHT_COLOUR_HOLY_MAGIC "#FFF743"
#define LIGHT_COLOR_HOLY_MAGIC "#FFF743"
/// deep crimson
#define LIGHT_COLOUR_BLOOD_MAGIC "#D00000"
#define LIGHT_COLOR_BLOOD_MAGIC "#D00000"

/* These ones aren't a direct color like the ones above, because nothing would fit */
/// Warm orange color, leaning strongly towards yellow. rgb(250, 160, 25)
#define LIGHT_COLOUR_FIRE "#FAA019"
#define LIGHT_COLOR_FIRE "#FAA019"
/// Very warm yellow, leaning slightly towards orange. rgb(196, 138, 24)
#define LIGHT_COLOUR_LAVA "#C48A18"
#define LIGHT_COLOR_LAVA "#C48A18"
/// Bright, non-saturated red. Leaning slightly towards pink for visibility. rgb(250, 100, 75)
#define LIGHT_COLOUR_FLARE "#FA644B"
#define LIGHT_COLOR_FLARE "#FA644B"
/// Weird color, between yellow and green, very slimy. rgb(175, 200, 75)
#define LIGHT_COLOUR_SLIME_LAMP "#AFC84B"
#define LIGHT_COLOR_SLIME_LAMP "#AFC84B"
/// Extremely diluted yellow, close to skin color (for some reason). rgb(250, 225, 175)
#define LIGHT_COLOUR_TUNGSTEN "#FAE1AF"
#define LIGHT_COLOR_TUNGSTEN "#FAE1AF"
/// Barely visible cyan-ish hue, as the doctor prescribed. rgb(240, 250, 250)
#define LIGHT_COLOUR_HALOGEN "#F0FAFA"

//The GAGS greyscale_colours for each department's computer/machine circuits
#define CIRCUIT_COLOUR_GENERIC "#1A7A13"
#define CIRCUIT_COLOUR_COMMAND "#1B4594"
#define CIRCUIT_COLOUR_SECURITY "#9A151E"
#define CIRCUIT_COLOUR_SCIENCE "#BC4A9B"
#define CIRCUIT_COLOUR_SERVICE "#92DCBA"
#define CIRCUIT_COLOUR_MEDICAL "#00CCFF"
#define CIRCUIT_COLOUR_ENGINEERING "#F8D700"
#define CIRCUIT_COLOUR_SUPPLY "#C47749"
#define LIGHT_COLOR_HALOGEN "#F0FAFA"

//The GAGS greyscale_colors for each department's computer/machine circuits
#define CIRCUIT_COLOR_GENERIC "#1A7A13"
#define CIRCUIT_COLOR_COMMAND "#1B4594"
#define CIRCUIT_COLOR_SECURITY "#9A151E"
#define CIRCUIT_COLOR_SCIENCE "#BC4A9B"
#define CIRCUIT_COLOR_SERVICE "#92DCBA"
#define CIRCUIT_COLOR_MEDICAL "#00CCFF"
#define CIRCUIT_COLOR_ENGINEERING "#F8D700"
#define CIRCUIT_COLOR_SUPPLY "#C47749"

/// The default color for admin say, used as a fallback when the preference is not enabled
#define DEFAULT_ASAY_COLOUR COLOUR_MOSTLY_PURE_RED
#define DEFAULT_ASAY_COLOR COLOR_MOSTLY_PURE_RED

#define DEFAULT_HEX_COLOUR_LEN 6
#define DEFAULT_HEX_COLOR_LEN 6

// Colour filters
// color filters
/// Icon filter that creates ambient occlusion
#define AMBIENT_OCCLUSION filter(type="drop_shadow", x=0, y=-2, size=4, border=4, color="#04080FAA")
/// Icon filter that creates gaussian blur
Expand Down
2 changes: 1 addition & 1 deletion code/__HELPERS/filters.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ GLOBAL_LIST_INIT(master_filter_info, list(
"y" = -1,
"size" = 1,
"offset" = 0,
"color" = COLOUR_HALF_TRANSPARENT_BLACK
"color" = COLOR_HALF_TRANSPARENT_BLACK
)
),
"blur" = list(
Expand Down
Loading
Loading