def rgb2rgba(rgb):
rgba = []<EOL>for i in range(<NUM_LIT:0>, len(rgb), <NUM_LIT:3>):<EOL><INDENT>rgba += rgb[i:i+<NUM_LIT:3>]<EOL>rgba.append(<NUM_LIT:255>)<EOL><DEDENT>return rgba<EOL>
Take a row of RGB bytes, and convert to a row of RGBA bytes.