It's basically a big D24. You can divide up the outcomes to make others. Some are straightforward, some may require a lookup-table.
D2 red ball falls in top or bottom half or check if red is above blue or not.
D4 the red ball can be in 4 positions.
D3 pretend the blue one does not exist, then the red can be in 3 possible positions.
D6 combine D3 with D2 (ignore blue, note red pos, check if yellow is up or down in remaining 2 positions)
D8 combine D4 with D2
D12 combine D4 with D3 (ie don't ignore blue)
D24 combine D2, D3 and D4.