Wrote luminosity calculator
Made darken function