Home/ Reference/ Fountain Fill

ff.MidPoint

Where the two stops meet, as a percentage. Lower it (25) and the start color takes more area; raise it (75) and the end color does.

Signature

ff.MidPoint

Notes

Where the two stops meet, as a percentage. Lower it (25) and the start color takes more area; raise it (75) and the end color does.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)
ff = shape.Fill.ApplyFountainFill(
    app.CreateRGBColor(0, 133, 205),
    app.CreateRGBColor(255, 255, 255), 1, 90)

ff.MidPoint = 25                                    # blue covers the area, white only the edge
print("Midpoint: ", ff.MidPoint)

ff.MidPoint = 75                                    # the other way round: white covers the area
print("Midpoint: ", ff.MidPoint)

About this section: Fountain Fill

Fountain Fill — linear and radial gradient fills.

Other entries in this section