Lingo Dictionary > G-K > gradientType |  |

gradientType

Syntax

    member(whichCastMember).gradientType

Description

Vector shape cast member property; specifies the actual gradient used in the cast member's fill.

Possible values are `#linear` or `#radial`. The `gradientType` is only valid when the `fillMode` is set to `#gradient`.

This property can be tested and set.

Example

This handler toggles between linear and radial gradients in cast member "backdrop".

    on mouseUp me
    	if member("backdrop").gradientType = #radial then
    		member("backdrop").gradientType = #linear
    	else
    		member("backdrop").gradientType = #radial
    	end if
    end

See also

`fillMode`