Trail Making Task using colours

Please show us the actual code you are using: