def METHOD_NAME(size, color=(255,255,255)):
    img = PNMImage(*size)
    if len(color) == 4:
        img.addAlpha()
    img.fill(*color)
    panda_tex = PandaTexture('texture')
    panda_tex.load(img)
    return Texture(panda_tex)