What Is That Game With the Rainbow Marble? It's Marble Madness (1984)
You are almost certainly thinking of Marble Madness (1984, Atari Games).
Why It Fits
Trackball Control: Arcade cabinet used a large 3-inch trackball. Home ports (NES, Genesis, Amiga, C64, etc.) used D-pad/joystick.
Isometric 3D (Pseudo-3D): Ray-traced prerendered sprites — looked "3D" in 1984. Distinctive checkerboard/gradient courses.
The Marble: While the in-game marble is usually a solid color (silver, gold, red, blue depending on version/player), the attract mode / cabinet art / promotional material famously featured a rainbow-swirled / iridescent marble. The NES box art shows a rainbow marble. The Genesis cover shows a metallic swirl.
Time Limit: Not lives — a global timer. "Time is running out!"