Home/ Reference/ Fountain Fill

ff.Type

Gradient shape, and it is writable: 1 linear / 2 radial / 3 conical / 4 square. Switching to 2 (radial) is the usual move for glows and button highlights.

Signature

ff.Type

Notes

Gradient shape, and it is writable: 1 linear / 2 radial / 3 conical / 4 square. Switching to 2 (radial) is the usual move for glows and button highlights.

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(255, 255, 255),
    app.CreateRGBColor(0, 133, 205), 1, 0)

ff.Type = 2                                         # 1 to 2: linear becomes radial
print("Fountain type now: ", ff.Type)

# 1=linear  2=radial  3=conical  4=square
names = {1: "linear", 2: "radial", 3: "conical", 4: "square"}
print("Name: ", names.get(ff.Type, "unknown"))

About this section: Fountain Fill

Fountain Fill — linear and radial gradient fills.

Other entries in this section