Brush.applyToElement Method

Applies the specified brush to an element.
 
 
Static This method is static.

Parameters

element

Type: HTMLElement - May be null
The element to which to apply the brush.
brush

Type: Brush - May be null
The brush to apply. If null, any existing brush will be removed.
property

Type: String - May be null
The property to which to apply the brush. If unspecified, the brush will be applied to the background.