Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/r/e/reportlab-3.1.8/src/reportlab/pdfgen/canvas.py   reportlab(Download)
def _buildColorFunction(colors, positions):
    from reportlab.pdfbase.pdfdoc import PDFExponentialFunction, PDFStitchingFunction
    if positions is not None and len(positions) != len(colors):
        raise ValueError("need to have the same number of colors and positions")
    # simplified functions for edge cases
    return PDFStitchingFunction(functions, bounds, encode, Domain="[0.0 1.0]")
class   ExtGState: