def cube(script, size=<NUM_LIT:1.0>, center=False, color=None):
"""<STR_LIT>"""<EOL>size = util.make_list(size, <NUM_LIT:3>)<EOL>if script.ml_version == '<STR_LIT>':<EOL><INDENT>filter_name = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>filter_name = '<STR_LIT>'<EOL><DEDENT>filter_xml = '<STR_LIT>'.join([<EOL>'<STR_LIT>'.format(filter_name),<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'])<EOL>util.write_filter(script, filter_xml)<EOL>if isinstance(script, FilterScript):<EOL><INDENT>script.add_layer('<STR_LIT>', change_layer=True)<EOL><DEDENT>transform.scale(script, value=size)<EOL>if not center:<EOL><INDENT>transform.translate(script, value=[size[<NUM_LIT:0>]/<NUM_LIT:2>, size[<NUM_LIT:1>]/<NUM_LIT:2>, size[<NUM_LIT:2>]/<NUM_LIT:2>])<EOL><DEDENT>if color is not None:<EOL><INDENT>vert_color.function(script, color=color)<EOL><DEDENT>return None<EOL>
Create a cube primitive

    Note that this is made of 6 quads, not triangles