Lines Matching defs:mode
34 * Create a new compose shader, given shaders A, B, and a combining mode.
35 * When the mode is applied, it will be given the result from shader A as its
38 * @param shaderA The colors from this shader are seen as the "dst" by the mode
39 * @param shaderB The colors from this shader are seen as the "src" by the mode
40 * @param mode The mode that combines the colors from the two shaders. If mode
43 public ComposeShader(@NonNull Shader shaderA, @NonNull Shader shaderB, @NonNull Xfermode mode) {
44 this(shaderA, shaderB, mode.porterDuffMode);
48 * Create a new compose shader, given shaders A, B, and a combining PorterDuff mode.
49 * When the mode is applied, it will be given the result from shader A as its
52 * @param shaderA The colors from this shader are seen as the "dst" by the mode
53 * @param shaderB The colors from this shader are seen as the "src" by the mode
54 * @param mode The PorterDuff mode that combines the colors from the two shaders.
57 @NonNull PorterDuff.Mode mode) {
58 this(shaderA, shaderB, mode.nativeInt);