Moonlight's opening weekend broke this year's per location average.

The film took in $414,740 in four theaters in New York and Los Angeles, breaking this year's per theater average, according to Forbes.

In Moonlight, Trevante Rhodes plays an African-American man who struggles to come out gay over three periods of his life while growing up in a rough neighborhood of Miami. Also in the film are Andre Holland, Janelle Monae, Naomie Harris and Mahershala Ali.

The film is based on Tarell Alvin McCraney's play In Moonlight Black Boys Look Blue.

Barry Jenkins directed the film and wrote the script.

(Related: Barry Jenkins: Donald Trump too “dense” to understand race relations, LGBT rights.)

Justin Chang of the Los Angeles Times praised the film – “[Moonlight] doesn't say much. It says everything” – and called Moonlight an early Oscar contender.