Code example for Paint

Methods: setAntiAliassetColorsetStrokeCapsetStrokeWidthsetStyle

0
        return new CubeEngine(); 
    } 
 
    class CubeEngine extends Engine {
 
        private final Paint mPaint = new Paint();
        private float mOffset;
        private float mTouchX = -1;
        private float mTouchY = -1;
        private long mStartTime;
        private float mCenterX;
        private float mCenterY;
 
        private final Runnable mDrawCube = new Runnable() {
            public void run() { 
                drawFrame(); 
            } 
        }; 
        private boolean mVisible;
 
        CubeEngine() { 
            // Create a Paint to draw the lines for our cube 
            final Paint paint = mPaint;
            paint.setColor(0xffffffff);
            paint.setAntiAlias(true);
            paint.setStrokeWidth(2);
            paint.setStrokeCap(Paint.Cap.ROUND);
            paint.setStyle(Paint.Style.STROKE);
 
            mStartTime = SystemClock.elapsedRealtime();
        } 
 
        @Override 
Stop searching for code, let great code find you!  Add Codota to your java IDE