James Franco is ready to take on as many gay roles as he can, provided they are good.

Franco plays quintessential beat generation poet Allen Ginsberg in the film Howl. Ginsberg was one of the first openly gay celebrities, going so far as to list his lover, the poet Peter Orlovsky, as his spouse in his Who's Who entry, and often advocated for gay rights.

Howl opened this year's Sundance Film Festival in Utah.

Last year, Franco played Harvey Milk's gay lover, Scott Smith, in the feature film Milk. The highly-acclaimed movie about the San Francisco politician murdered on the steps of City Hall was directed by Gus Van Sant. Van Sant executive produced Howl.

As a film director, Franco has produced two gay-themed shorts.

Franco's The Feast of Stephen won a Teddy award at the Berlin Film Festival where it premiered. Feast features a young gay man whose daydream of naked boys playing basketball turns violent when the boys chase him down. Another short, The Clerk's Tale, premiered at France's Cannes Film Festival. In the film, a gay man is haunted by the monotony of working at a high-end menswear store. Both shorts are based on poems.

“I want to be an artist and I want to be crazy,” Franco told UK paper The Independent.

He said he doesn't care much if the gay roles he's played and the gay characters he's portrayed in his films lead people to believe he's gay.

“The worst downside, and I don't consider this a downside, the worst thing that anybody could say is that I was gay and if somebody said that I guess they would be wrong,” Franco said.

The 32-year-old Franco, who is expected to reprise his role of artist Franco on ABC's General Hospital later this year, added that he'll take on “100 gay roles.”

“I would be happy to play 100 gay roles as long as they were always good parts,” he said.

Franco has been dating actress Anha O'Reilly for several years.