Skip to content

Commit

Permalink
Merge pull request #73 from Bird-Lounge/mutant-colors-b-free
Browse files Browse the repository at this point in the history
[NONMODULAR] Kills Is_Color_Dark
  • Loading branch information
Nerev4r authored Sep 22, 2024
2 parents 1368306 + 4889b1e commit a5177a1
Showing 1 changed file with 7 additions and 2 deletions.
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

0 comments on commit a5177a1

Please sign in to comment.