Shader
Shaders specify the source color(s) for what is being drawn. If a paint has no shader, then the paint's color is used. If the paint has a shader, then the shader's color(s) are use instead, but they are modulated by the paint's alpha. This makes it easy to create a shader once (e.g. bitmap tiling or gradient) and then change its transparency w/o having to modify the original shader... only the paint's alpha needs to be modified.
Properties
Functions
Link copied to clipboard
Create a new shader that produces the same colors as invoking this shader and then applying the colorfilter.
Link copied to clipboard
Return a shader that will apply the specified localMatrix to this shader. The specified matrix will be applied before any matrix associated with this shader.