This is one race where time was not the most important factor.

Instead, runners dressed at least partly in white vied to get covered with splotches of pink, green, blue and yellow at Jones Beach State Park’s first 5-kilometer Bubble Run Saturday.

The point of this competition was to run through foam bogs, picking up as much color as possible.

Enthusiasm abounded among the crowd, which officials pegged at about 4,000, who turned out at the Wantagh park despite a bit of a chill.

“It’s awesome,” said Ray Johnson, 48, of Massapequa, who ran with his daughter, Jillian, 12, and one of her friends. “When you run through them, you actually feel warm inside.”

The foam, shot into the air, was thick enough to at least partly obscure the runners’ view.

advertisement | advertise on newsday

“I could barely see,” said Emily Bergin, 13, of Lynbrook, who ran with six of her friends.

There was one other slight drawback experienced by a number of first-time bubble runners, who inhaled or swallowed the foam that organizers promised is nontoxic.

“It’s disgusting. It tastes really bad, like soap,” said another of the Lynbrook runners, Maeve Mooney, 13.

But the bubbles also proved their worth as motivators.

“We like the bubbles; that’s the incentive to keep going,” said Kersten Millevoi of West Hempstead.

“The bubbles were cool,” said her daughter, Rebecca, 14.

And the event aids a charity, KiDS NEED MORE, noted Julie Mooney, of Lynbrook, one of the parents of the seven girls from her community who ran.

The charity aims to enhance the lives of children dealing with cancer and life-threatening illness and their families, including through its Camp Adventure program.

“We’re raising money for the cause,” Mooney said.