<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>GlyphSoft</title>
	<atom:link href="http://glyphter.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://glyphter.wordpress.com</link>
	<description>Mark Anro Silva on Java, JavaFX and GWT</description>
	<lastBuildDate>Mon, 16 Jan 2012 07:09:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='glyphter.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>GlyphSoft</title>
		<link>http://glyphter.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://glyphter.wordpress.com/osd.xml" title="GlyphSoft" />
	<atom:link rel='hub' href='http://glyphter.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Simple JavaFX 2.0 3D</title>
		<link>http://glyphter.wordpress.com/2012/01/16/simple-javafx-2-0-3d/</link>
		<comments>http://glyphter.wordpress.com/2012/01/16/simple-javafx-2-0-3d/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 06:56:22 +0000</pubDate>
		<dc:creator>Mark Anro Silva</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[JavaFX 3D]]></category>

		<guid isPermaLink="false">http://glyphter.wordpress.com/?p=27</guid>
		<description><![CDATA[A simple JavaFX 2.0 3D  example with Path Transition and Timeline Animation<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glyphter.wordpress.com&amp;blog=13161866&amp;post=27&amp;subd=glyphter&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>
<div style="display:block;text-align:left;">A simple JavaFX 2.0 3D  example with Path Transition and Timeline Animation.</div>
<p></strong><br />
</br></p>
<div style="display:block;text-align:left;"><a href="https://sites.google.com/site/glyphter/home/simple-javafx-3d/Untitled.png?attredirects=0"><img src="https://sites.google.com/site/glyphter/home/simple-javafx-3d/Untitled.png" alt="" border="0" /></a></div>
<p><a href="https://sites.google.com/site/glyphter/home/simple-javafx-3d/3DJavaFXProject.jnlp?attredirects=0"><img src="http://java.sun.com/products/jfc/tsc/sightings/images/webstart.small.jpg" alt="" border="0" /></a></p>
<p><pre class="brush: plain; first-line: 1; pad-line-numbers: true;">
public class Main extends Application {

private static final double WIDTH = 700, HEIGHT = 500;
private PathTransition pathBackFaceTransition;
private PathTransition pathFrontFaceTransition;
private Timeline animation;

private void init(Stage primaryStage) {

Group root = new Group();
primaryStage.setTitle(&quot;JavaFX 3D&quot;);
primaryStage.setResizable(false);
Scene scene = new Scene(root, WIDTH, HEIGHT, true);
scene.setFill(Color.BLACK);
primaryStage.setScene(scene);
PerspectiveCamera camera = new PerspectiveCamera();
Translate translate = new Translate(WIDTH / 2, HEIGHT / 2);
Rotate rotate = new Rotate(180, Rotate.Y_AXIS);
primaryStage.getScene().setCamera(camera);
root.getTransforms().addAll(translate, rotate);

Node node = create3dContent();

root.getChildren().add(node);
}

public void play(){
pathBackFaceTransition.play();
pathFrontFaceTransition.play();
}

@Override
public void stop(){
pathBackFaceTransition.stop();
pathFrontFaceTransition.stop();
}

public Node create3dContent() {

final Face cube = new Face(250);

cube.rx.setAngle(0);
cube.ry.setAngle(0);
cube.rz.setAngle(0);

cube.setOnMouseMoved(new EventHandler(){
@Override
public void handle(final MouseEvent arg0) {

animation = new Timeline();

animation.getKeyFrames().addAll(
new KeyFrame(new Duration(2000),
new KeyValue(cube.rx.angleProperty(),arg0.getY()),
new KeyValue(cube.ry.angleProperty(),-arg0.getX()),
new KeyValue(cube.rz.angleProperty(),arg0.getY())
));
animation.play();
}
});

return new Group(cube);
}

public class Face extends Group {

final Rotate rx = new Rotate(0, Rotate.X_AXIS);
final Rotate ry = new Rotate(0, Rotate.Y_AXIS);
final Rotate rz = new Rotate(0, Rotate.Z_AXIS);

RectangleBuilder frontFace;// front face
RectangleBuilder rightFace;// right face
RectangleBuilder leftFace;// left face
RectangleBuilder backFace;// back face

public Face(double size) {

Color[] colors = {Color.TRANSPARENT, Color.YELLOW};

backFace = RectangleBuilder.create().strokeDashArray(1.0, 6.0).width(size).height(size).fill(colors[0]).strokeWidth(2).stroke(Color.BLUE).translateX(-0.5 * size).translateY(-0.5 * size).translateZ(-0.5*size).rotationAxis(Rotate.Z_AXIS).rotate(45);
rightFace = RectangleBuilder.create().strokeDashArray(1.0, 6.0).width(size).height(size).fill(colors[0]).strokeWidth(2).stroke(Color.BLUE).translateX(-1 * size).translateY(-0.5 * size).rotationAxis(Rotate.Y_AXIS).rotate(90);
leftFace = RectangleBuilder.create().strokeDashArray(1.0, 6.0).width(size).height(size).fill(colors[0]).strokeWidth(2).stroke(Color.BLUE).translateX(0).translateY(-0.5 * size).rotationAxis(Rotate.Y_AXIS).rotate(90);
frontFace = RectangleBuilder.create().strokeDashArray(1.0, 6.0).width(size).height(size).fill(colors[0]).strokeWidth(2).stroke(Color.BLUE).translateX(-0.5 * size).translateY(-0.5 * size).translateZ(0.5*size).rotationAxis(Rotate.Z_AXIS).rotate(225);

Rectangle rectangleFrontFace = frontFace.build();
Rectangle rectangleRightFace = rightFace.build();
Rectangle ractangleLeftFace = leftFace.build();
Rectangle rectangleBackFace = backFace.build();

Bloom backFaceBloomEffect = new Bloom();
Circle backCircle = new Circle();
backCircle.setStrokeWidth(10);
backCircle.setRadius(10);
backCircle.setStrokeLineCap(StrokeLineCap.ROUND);
backCircle.setStroke(colors[1]);
backCircle.getStrokeDashArray().addAll(1.0, 20.0);
backCircle.setTranslateX(-0.5 * size);
backCircle.setTranslateY(-0.5 * size);
backCircle.setTranslateZ(-0.5 * size);
backCircle.setEffect(backFaceBloomEffect);

Bloom frontFaceBloomEffect = new Bloom();
Circle frontCircle = new Circle();
frontCircle.setStrokeWidth(10);
frontCircle.setRadius(10);
frontCircle.setStrokeLineCap(StrokeLineCap.ROUND);
frontCircle.setStroke(colors[1]);
frontCircle.getStrokeDashArray().addAll(1.0, 20.0);
frontCircle.setTranslateX(-0.5 * size);
frontCircle.setTranslateY(-0.5 * size);
frontCircle.setTranslateZ(0.5 * size);
frontCircle.setEffect(frontFaceBloomEffect);

pathBackFaceTransition = new PathTransition();
pathBackFaceTransition.setPath(rectangleBackFace);
pathBackFaceTransition.setNode(frontCircle);
pathBackFaceTransition.setDuration(Duration.seconds(4));
pathBackFaceTransition.setOrientation(OrientationType.ORTHOGONAL_TO_TANGENT);
pathBackFaceTransition.setCycleCount(Timeline.INDEFINITE);

pathFrontFaceTransition = new PathTransition();
pathFrontFaceTransition.setPath(rectangleFrontFace);
pathFrontFaceTransition.setNode(backCircle);
pathFrontFaceTransition.setDuration(Duration.seconds(4));
pathFrontFaceTransition.setOrientation(OrientationType.ORTHOGONAL_TO_TANGENT);
pathFrontFaceTransition.setCycleCount(Timeline.INDEFINITE);

getChildren().addAll(backCircle, frontCircle, rectangleBackFace, rectangleRightFace, ractangleLeftFace, rectangleFrontFace);
getTransforms().addAll(rz, ry, rx);

}
}

@Override
public void start(Stage primaryStage) throws Exception {
init(primaryStage);
primaryStage.show();
play();
}

public static void main(String[] args) {
launch(args);
}

}

</pre></p>
<p><a href="https://sites.google.com/site/glyphter/home/simple-javafx-3d/3DJavaFXProject.jnlp?attredirects=0"><br />
</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/glyphter.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/glyphter.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/glyphter.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/glyphter.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/glyphter.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/glyphter.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/glyphter.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/glyphter.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/glyphter.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/glyphter.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/glyphter.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/glyphter.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/glyphter.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/glyphter.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glyphter.wordpress.com&amp;blog=13161866&amp;post=27&amp;subd=glyphter&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://glyphter.wordpress.com/2012/01/16/simple-javafx-2-0-3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4d8490fedcd475f2e4d00ce7bfbd05a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">glyphter</media:title>
		</media:content>

		<media:content url="https://sites.google.com/site/glyphter/home/simple-javafx-3d/Untitled.png" medium="image" />

		<media:content url="http://java.sun.com/products/jfc/tsc/sightings/images/webstart.small.jpg" medium="image" />
	</item>
		<item>
		<title>JavaFX Animation</title>
		<link>http://glyphter.wordpress.com/2010/07/30/javafx-animation/</link>
		<comments>http://glyphter.wordpress.com/2010/07/30/javafx-animation/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 14:00:52 +0000</pubDate>
		<dc:creator>Mark Anro Silva</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://glyphter.wordpress.com/?p=22</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glyphter.wordpress.com&amp;blog=13161866&amp;post=22&amp;subd=glyphter&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="display:block;text-align:left;"><a href="http://sites.google.com/site/glyphter/home/javafx-animation/JFXAnimation2.jpg?attredirects=0"></a></p>
<div style="display:block;text-align:left;"><a href="http://sites.google.com/site/glyphter/home/javafx-animation/JFXAnimation1.jpg?attredirects=0"><img border="0" src="http://sites.google.com/site/glyphter/home/javafx-animation/JFXAnimation1.jpg"></a></div>
<p><img border="0" src="http://sites.google.com/site/glyphter/home/javafx-animation/JFXAnimation2.jpg"></div>
<p>
<a href="http://sites.google.com/site/glyphter/home/javafx-animation/JFXAnimation.jnlp?attredirects=0"><br />
<img alt="" border="0" src="http://java.sun.com/products/jfc/tsc/sightings/images/webstart.small.jpg"><br />
</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/glyphter.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/glyphter.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/glyphter.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/glyphter.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/glyphter.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/glyphter.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/glyphter.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/glyphter.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/glyphter.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/glyphter.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/glyphter.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/glyphter.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/glyphter.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/glyphter.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glyphter.wordpress.com&amp;blog=13161866&amp;post=22&amp;subd=glyphter&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://glyphter.wordpress.com/2010/07/30/javafx-animation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4d8490fedcd475f2e4d00ce7bfbd05a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">glyphter</media:title>
		</media:content>

		<media:content url="http://sites.google.com/site/glyphter/home/javafx-animation/JFXAnimation1.jpg" medium="image" />

		<media:content url="http://sites.google.com/site/glyphter/home/javafx-animation/JFXAnimation2.jpg" medium="image" />

		<media:content url="http://java.sun.com/products/jfc/tsc/sightings/images/webstart.small.jpg" medium="image" />
	</item>
		<item>
		<title>JavaFX Light Bulb</title>
		<link>http://glyphter.wordpress.com/2010/04/21/javafx-light-bulb/</link>
		<comments>http://glyphter.wordpress.com/2010/04/21/javafx-light-bulb/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 04:29:52 +0000</pubDate>
		<dc:creator>Mark Anro Silva</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://glyphter.wordpress.com/?p=15</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glyphter.wordpress.com&amp;blog=13161866&amp;post=15&amp;subd=glyphter&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://sites.google.com/site/glyphter/_/rsrc/1271823820982/home/javafx-light-bulb-1/JavaFXLightbulb.jpg" class="alignnone" width="309" height="426" /></p>
<p><a href="http://sites.google.com/site/glyphter/home/javafx-light-bulb-1/JavaFXLightBulb.jnlp"><br />
<img alt="" src="http://java.sun.com/products/jfc/tsc/sightings/images/webstart.small.jpg" border="0"><br />
</a></p>
<p><pre class="brush: plain; first-line: 1; pad-line-numbers: false;">
var buttonstext = &quot;On&quot; on replace {
            if (buttonstext == &quot;Off&quot;) {
                lightOpacity1 = .1;
                lightOpacity3 = .3;
                lightOpacity4 = 1;
                controlVisible = true;
                slider.value = .3;
            } else {
                lightOpacity1 = 0;
                lightOpacity3 = 0;
                lightOpacity4 = 0;
                controlVisible = false;
                slider.value = 0;
            }
        };
var lightOpacity1: Number = 0;
var lightOpacity2: Number = bind slider.value;
var lightOpacity3: Number = 0;
var lightOpacity4: Number = 0;
var lightbulbImg = ImageView {
            image: Image {
                url: &quot;{__DIR__}resources/lightbulb.jpg&quot;
            }
        }
var controlVisible = false;
var effects = Group {
            content: [
                Rectangle {
                    width: 412
                    height: 520
                    fill: Color.YELLOW
                    opacity: bind lightOpacity1
                }
                LightBulbEffect {effectOpacity: bind lightOpacity2}
                LightBulbEffect {effectOpacity: bind lightOpacity3}
                Rectangle {
                    effect: GaussianBlur {
                        radius: 10
                        input: Glow {}
                    }
                    translateY: 178
                    translateX: 165
                    width: 65
                    height: 8
                    arcWidth: 8
                    arcHeight: 8
                    fill: Color.WHITE
                    stroke: Color.ORANGE
                    strokeWidth: 1.8
                    opacity: bind lightOpacity4
                }
                Path {
                    effect: GaussianBlur {
                        radius: 1
                        input: Glow {}
                    }
                    stroke: Color.WHITE
                    strokeWidth: 1.8
                    opacity: bind lightOpacity4
                    elements: [
                        MoveTo {x: 172 y: 183},
                        LineTo {x: 183 y: 182},
                        QuadCurveTo {
                            controlX: 198 controlY: 183
                            x: 213 y: 182
                        }
                        QuadCurveTo {
                            controlX: 214 controlY: 183
                            x: 225 y: 185
                        }
                    ]
                }
            ]
        }
var togglebutton = Button {
            translateY: 350
            translateX: 260
            text: bind buttonstext
            onMousePressed: function (ev: MouseEvent): Void {
                if (buttonstext == &quot;Off&quot;) {
                    buttonstext = &quot;On&quot;;
                } else {
                    buttonstext = &quot;Off&quot;;
                }
                }
        }
var slider: Slider = Slider {
            translateY: 420
            translateX: 128
            max: .4
            min: 0
            visible: bind controlVisible
        }
var controls = Group {
            content: [
                togglebutton,
                slider,
                Label{ translateX: 120 translateY:419 text:&quot;-&quot; visible: bind controlVisible}
                Label{ translateX: 268 translateY:419 text:&quot;+&quot; visible: bind controlVisible}
            ]
        }

Stage {
    title: &quot;JavaFX Light Bulb&quot;
    scene: Scene {
        width: 402
        height: 499
        fill: Color.BLACK
        content: [
            lightbulbImg,
            effects,
            controls
        ]
    }
  }
}
</pre></p>
<p><pre class="brush: plain; first-line: 1; pad-line-numbers: false;">
public class LightBulbEffect extends CustomNode {

    public var effectOpacity: Number;

    override function create() {
        Path {
            translateX: -10
            translateY: -8
            effect: GaussianBlur {input: Glow {level: 1} radius: 63}
            fill: Color.YELLOW
            stroke: Color.YELLOW
            strokeWidth: 5
            opacity: bind effectOpacity
            elements: [
                MoveTo {x: 127 y: 132},
                QuadCurveTo {
                    controlX: 206 controlY: 48
                    x: 287 y: 132
                }
                QuadCurveTo {
                    controlX: 320 controlY: 180
                    x: 295 y: 230
                }
                QuadCurveTo {
                    controlX: 290 controlY: 240
                    x: 270 y: 280
                }
                QuadCurveTo {
                    controlX: 270 controlY: 295
                    x: 260 y: 320
                }
                LineTo {x: 153 y: 320}
                QuadCurveTo {
                    controlX: 143 controlY: 295
                    x: 143 y: 280
                }
                QuadCurveTo {
                    controlX: 118 controlY: 240
                    x: 115 y: 230
                }
                QuadCurveTo {
                    controlX: 95 controlY: 180
                    x: 127 y: 132
                }
            ]
        }
    }
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/glyphter.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/glyphter.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/glyphter.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/glyphter.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/glyphter.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/glyphter.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/glyphter.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/glyphter.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/glyphter.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/glyphter.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/glyphter.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/glyphter.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/glyphter.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/glyphter.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glyphter.wordpress.com&amp;blog=13161866&amp;post=15&amp;subd=glyphter&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://glyphter.wordpress.com/2010/04/21/javafx-light-bulb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4d8490fedcd475f2e4d00ce7bfbd05a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">glyphter</media:title>
		</media:content>

		<media:content url="http://sites.google.com/site/glyphter/_/rsrc/1271823820982/home/javafx-light-bulb-1/JavaFXLightbulb.jpg" medium="image" />

		<media:content url="http://java.sun.com/products/jfc/tsc/sightings/images/webstart.small.jpg" medium="image" />
	</item>
		<item>
		<title>JavaFX Effect Example</title>
		<link>http://glyphter.wordpress.com/2010/04/21/javafx-effect-2/</link>
		<comments>http://glyphter.wordpress.com/2010/04/21/javafx-effect-2/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 04:04:00 +0000</pubDate>
		<dc:creator>Mark Anro Silva</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://glyphter.wordpress.com/?p=7</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glyphter.wordpress.com&amp;blog=13161866&amp;post=7&amp;subd=glyphter&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="https://sites.google.com/site/glyphter/home/javafx-effect/JavaFX.png" class="alignnone" width="272" height="348" /></p>
<p><a href="http://sites.google.com/site/glyphter/home/javafx-effect/JavaFXEffect.jnlp"><br />
<img alt="" src="http://java.sun.com/products/jfc/tsc/sightings/images/webstart.small.jpg" border="0"><br />
</a></p>
<p><pre class="brush: plain; first-line: 1; pad-line-numbers: false;">
Stage {
    title: &quot;JavaFX Effect&quot;
    scene: Scene {
        width: 400
        height: 450
        fill:Color.BLACK
        content: [
            JavaLogo {translateX: -100 translateY: -145}
        ]
    }
}
</pre></p>
<p><pre class="brush: plain; first-line: 1; pad-line-numbers: false;">
public class JavaLogo extends CustomNode {

    override public var translateX;
    override public var translateY;
    var smokeDifuseConstant: Number = 2;
    var glowLevel: Number = 0;
    var cup = Cup {smokeDifuseConstant: bind smokeDifuseConstant with inverse}
    var javaText = Text {
                x: 210
                y: 500
                content: &quot;Java&quot;
                fill: Color.DARKORANGE
                effect: Glow {
                    level: bind glowLevel
                    input: Lighting {
                        light: DistantLight {azimuth: -135}
                        surfaceScale: 3
                    }
                }
                font: Font.font(null, FontWeight.EXTRA_BOLD, FontPosture.REGULAR, 60)
            }
    var fxText = Text {
                x: 337
                y: 500
                content: &quot;Fx&quot;
                fill: Color.BLUE
                effect: Glow {
                    level: bind glowLevel
                    input: Lighting {
                        light: DistantLight {azimuth: -135}
                        surfaceScale: 3
                        diffuseConstant: 1.5
                    }
                }
                font: Font.font(null, FontWeight.EXTRA_BOLD, FontPosture.ITALIC, 60)
            }
    var timeline1: Timeline = Timeline {
                repeatCount: Timeline.INDEFINITE
                keyFrames: [
                    KeyFrame {
                        time: 3s
                        values: [smokeDifuseConstant =&gt; .7 tween Interpolator.EASEBOTH]
                    }
                    KeyFrame {
                        time: 6s
                        values: [smokeDifuseConstant =&gt; 2 tween Interpolator.EASEBOTH]
                    }
                ]
            }
    var timeline2: Timeline = Timeline {
                repeatCount: Timeline.INDEFINITE
                keyFrames: [
                    KeyFrame {
                        time: 300ms
                        values: [glowLevel =&gt; .8 tween Interpolator.EASEBOTH]
                    }
                ]
            }

    override function create() {
        timeline1.play();
        timeline2.play();
        Group {
            content: [
                cup,
                javaText,
                fxText
            ]
        }
    }
}
</pre></p>
<p><pre class="brush: plain; first-line: 1; pad-line-numbers: false;">
public class Cup extends CustomNode {

    override public var translateX;
    override public var translateY;
    public var smokeDifuseConstant: Number = 1;
    var cup = Group {
                translateX: 240
                translateY: 100
                effect: Glow {
                    level: 1
                    input: Lighting {
                        light: DistantLight {azimuth: -135}
                        surfaceScale: 5
                        specularExponent: 15}
                }
                content: [
                    Path {
                        fill: Color.BLUE
                        stroke: Color.BLUE
                        elements: [
                            MoveTo {x: 0 y: 326},
                            QuadCurveTo {
                                controlX: 50 controlY: 337
                                x: 112 y: 323
                            }
                            QuadCurveTo {
                                controlX: 50 controlY: 339
                                x: 0 y: 326
                            }
                        ]
                    },
                    Path {
                        fill: Color.BLUE
                        stroke: Color.BLUE
                        elements: [
                            MoveTo {x: -3 y: 310},
                            QuadCurveTo {
                                controlX: -20 controlY: 315
                                x: 0 y: 320
                            }
                            QuadCurveTo {
                                controlX: 50 controlY: 330
                                x: 100 y: 320
                            }
                            QuadCurveTo {
                                controlX: 50 controlY: 337
                                x: 0 y: 323
                            }
                            QuadCurveTo {
                                controlX: -20 controlY: 318
                                x: 0 y: 310
                            }
                        ]
                    },
                    Path {
                        fill: Color.BLUE
                        stroke: Color.BLUE
                        elements: [
                            MoveTo {x: 20 y: 302},
                            QuadCurveTo {
                                controlX: 30 controlY: 315
                                x: 70 y: 305
                            }
                            QuadCurveTo {
                                controlX: 30 controlY: 308
                                x: 20 y: 302
                            }
                        ]
                    },
                    Path {
                        fill: Color.BLUE
                        stroke: Color.BLUE
                        elements: [
                            MoveTo {x: 18 y: 282},
                            QuadCurveTo {
                                controlX: 30 controlY: 295
                                x: 70 y: 285
                            }
                            QuadCurveTo {
                                controlX: 30 controlY: 290
                                x: 18 y: 282
                            }
                        ]
                    },
                    Path {
                        fill: Color.BLUE
                        stroke: Color.BLUE
                        elements: [
                            MoveTo {x: 12 y: 252},
                            QuadCurveTo {
                                controlX: -5 controlY: 252
                                x: 15 y: 260
                            }
                            QuadCurveTo {
                                controlX: 50 controlY: 270
                                x: 85 y: 260
                            }
                            QuadCurveTo {
                                controlX: 50 controlY: 273
                                x: 15 y: 263
                            }
                            QuadCurveTo {
                                controlX: -5 controlY: 252
                                x: 15 y: 252
                            }
                        ]
                    },
                    Path {
                        fill: Color.BLUE
                        stroke: Color.BLUE
                        elements: [
                            MoveTo {x: 100 y: 251},
                            QuadCurveTo {
                                controlX: 136 controlY: 253
                                x: 90 y: 290
                            }
                            QuadCurveTo {
                                controlX: 155 controlY: 240
                                x: 90 y: 252
                            }
                        ]
                    }
                ]
            }
    var smoke = Group {
                translateX: 240
                translateY: 100
                effect: Glow {
                    level: .5
                    input: Lighting {
                        light: DistantLight {azimuth: -135}
                        surfaceScale: 5
                        diffuseConstant: bind smokeDifuseConstant
                    }
                }
                content: [
                    Path {
                        fill: Color.ORANGE
                        stroke: Color.ORANGE
                        elements: [
                            MoveTo {x: 50 y: 250},
                            QuadCurveTo {
                                controlX: 10 controlY: 225
                                x: 50 y: 200
                            },
                            QuadCurveTo {
                                controlX: 75 controlY: 180
                                x: 65 y: 150
                            },
                            QuadCurveTo {
                                controlX: 77 controlY: 180
                                x: 55 y: 200
                            },
                            QuadCurveTo {
                                controlX: 20 controlY: 225
                                x: 50 y: 250
                            }
                        ]
                    },
                    Path {
                        fill: Color.ORANGE
                        stroke: Color.ORANGE
                        elements: [
                            MoveTo {x: 50 y: 245},
                            QuadCurveTo {
                                controlX: 25 controlY: 225
                                x: 75 y: 200
                            }
                            QuadCurveTo {
                                controlX: 30 controlY: 225
                                x: 60 y: 245
                            }
                            QuadCurveTo {
                                controlX: 65 controlY: 250
                                x: 60 y: 255
                            }
                            QuadCurveTo {
                                controlX: 50 controlY: 245
                                x: 50 y: 245
                            }
                        ]
                    }
                ]
            }

    override function create() {
        Group {
            content: [
                smoke,
                cup
            ]
        }
    }
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/glyphter.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/glyphter.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/glyphter.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/glyphter.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/glyphter.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/glyphter.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/glyphter.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/glyphter.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/glyphter.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/glyphter.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/glyphter.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/glyphter.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/glyphter.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/glyphter.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=glyphter.wordpress.com&amp;blog=13161866&amp;post=7&amp;subd=glyphter&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://glyphter.wordpress.com/2010/04/21/javafx-effect-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4d8490fedcd475f2e4d00ce7bfbd05a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">glyphter</media:title>
		</media:content>

		<media:content url="https://sites.google.com/site/glyphter/home/javafx-effect/JavaFX.png" medium="image" />

		<media:content url="http://java.sun.com/products/jfc/tsc/sightings/images/webstart.small.jpg" medium="image" />
	</item>
	</channel>
</rss>
