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

[NONMODULAR] Kills Is_Color_Dark #73

Merged
merged 2 commits into from
Sep 22, 2024
Merged
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
9 changes: 7 additions & 2 deletions code/__HELPERS/colors.dm
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/// Given a color in the format of "#RRGGBB", will return if the color
/// is dark.
/proc/is_color_dark(color, threshold = 25)
var/hsl = rgb2num(color, COLORSPACE_HSL)
return hsl[3] < threshold
/// DOPPLER SHIFT REMOVAL BEGIN - BEGONE SNOWFLAKE FUNCTION!
/*var/hsl = rgb2num(color, COLORSPACE_HSL)
return hsl[3] < threshold*/
/// DOPPLER SHIFT REMOVAL END - WE DON'T CARE IF SOMEONE MAKES THEIR FLASHLIGHT USELESS!
/// DOPPLER SHIFT ADDITION BEGIN - NOR DO WE CARE IF SOMEONE'S CHARACTER IS LITERALLY MADE OF VANTABLACK!
return FALSE
/// DOPPLER SHIFT ADDITION END - TEEGEE'S CRUSADE AGAINST POWERGAMERS, BEGONE!!

/// Given a 3 character color (no hash), converts it into #RRGGBB (with hash)
/proc/expand_three_digit_color(color)
Expand Down
Loading