Examples of BlurEffect


Examples of org.joshy.gfx.draw.effects.BlurEffect

        GFX g2 = bufx.getGFX();
        g2.setPaint(FlatColor.BLACK);
        g2.translate(10, 10);
        fillShape(g2);
        g2.translate(-10, -10);
        bufx.apply(new BlurEffect(blurRadius));
        g2.dispose();

        //invert alpha channel
        for(int i=0; i<bufx.buf.getWidth(); i++) {
            for(int j=0; j<bufx.buf.getHeight(); j++) {
View Full Code Here

Examples of org.joshy.gfx.draw.effects.BlurEffect

        initPaint(g2);
        fillShape(g2);
        drawShape(g2);
        g2.translate(b.getX(),b.getY());
        //blur
        buf.apply(new BlurEffect(blurRadius));
        g2.translate(-blurRadius,-blurRadius);
        //use blur as alpha mask to draw in the real color
        buf.apply(new WipeColorEffect(shadow.getColor()));

        oldShadow = shadow;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.