def draw(self, x, y, width, height):
        width = max(width, self.width + 2)
        height = max(height, self.height + 2)
        vertices = self.get_vertices(x, y, width, height)

        glPushAttrib(GL_ENABLE_BIT)
        glEnable(GL_BLEND)
        glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
        glEnable(self.texture.target)
        glBindTexture(self.texture.target, self.texture.id)
        pyglet.graphics.draw_indexed(
            16, GL_QUADS, self.indices,
            ('v2i', vertices),
            ('t2f', self.tex_coords))
        glPopAttrib()
Returns the target output for this task.
dataset/ETHPy150Open ardekantur/pyglet/experimental/ninepatch.py/NinePatch.draw--crossover with--dataset/ETHPy150Open spotify/luigi/examples/top_artists.py/Streams.output