MacBook Pro 2012 hangs on startup
Black stripes on blue screen and booting problems is very alike a GPU problem just like MacBooks 2011 had. 
Though, to surely check it is not software you may try backing up data to another computer (requires removing Mac's HD and putting it into external case), format it and install a fresh MacOS from a flash drive.