Home/ Reference/ Fountain Fill

ff.StartColor / ff.EndColor

The two end colors on a FountainFill. Reading them is fine; to change one, call ApplyFountainFill() again rather than forcing the property.

Signature

ff.StartColor / ff.EndColor

Notes

The two end colors on a FountainFill. Reading them is fine; to change one, call ApplyFountainFill() again rather than forcing the property.

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)

print("Start colour: ", ff.StartColor.HexValue)            # reads back as #0085CD
print("End colour: ", ff.EndColor.HexValue)

# to change colours, applying again is the safe route
ff = shape.Fill.ApplyFountainFill(
    app.CreateRGBColor(255, 214, 0),
    app.CreateRGBColor(255, 255, 255), 1, 90)
print("New start colour: ", ff.StartColor.HexValue)

About this section: Fountain Fill

Fountain Fill — linear and radial gradient fills.

Other entries in this section