def fillstar2d(im, tup, face, vert, tricol):
    for (fa, col) in zip(face, tricol):
        # select pixels in a given triangle
        intri = triangle_image(tup, vert[fa[0]], vert[fa[1]], vert[fa[2]])
        # add the colour/intensity to those pixels
        im[intri] = im[intri] + col
    return(im)
Post-definition decorator for specifying RBAC roles for a method.
dataset/ETHPy150Open mkenworthy/exorings/starspot/starspot.py/fillstar2d--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/rbac.py/rbac_decorate