Code example for Shader

Methods: setLocalMatrix

0
                                   Shader.TileMode.REPEAT,
                                   Shader.TileMode.REPEAT);
            Matrix m = new Matrix();
            m.setScale(6, 6);
            mBG.setLocalMatrix(m);
        } 
 
        @Override protected void onDraw(Canvas canvas) {
            canvas.drawColor(Color.WHITE);
 
            Paint labelP = new Paint(Paint.ANTI_ALIAS_FLAG);
            labelP.setTextAlign(Paint.Align.CENTER);
 
            Paint paint = new Paint();
            paint.setFilterBitmap(false);
 
            canvas.translate(15, 35);
 
            int x = 0;
            int y = 0;
            for (int i = 0; i < sModes.length; i++) {