internal static float Brightness(this Player player) { Rectangle loc = new Rectangle(player.getRect().X / 16, player.getRect().Y / 16, 2, 3); return(Lighting.BrightnessAverage(loc.X, loc.Y, loc.Width, loc.Height)); }
internal static float Brightness(this Player player) { Rectangle loc = new Rectangle(player.getRect().X / 16, player.getRect().Y / 16, 2, 3); return(Lighting.BrightnessAverage(loc.X, loc.Y, loc.Width, loc.Height)); }