Wikia

Planet JFX

JFX Logo - pforhan

118pages on
this wiki
Talk0

Render Edit

JfxLogo-pforhan

Code Edit

import javafx.ui.filter.*;
import javafx.ui.canvas.*;
import javafx.ui.*;

Canvas {
    content: [
    Circle {
        //        filter: GaussianBlur
        cx: 75
        cy: 75
        opacity: .5
        radius: 74
        stroke: black
        strokeWidth: 5
        fill: RadialGradient {
            cx: bind [0..150] dur 10000
            cy: 150
            focusX: 150
            focusY: 40
            radius: 100
            stops:
            [Stop {
                offset: 0.0
                color: orange
            },
            Stop {
                offset: 0.5
                color: red
            },
            Stop {
                offset: 1.0
                color: black
            }]
            spreadMethod: REFLECT
        }
    },
    Clip {
        filter: [ShadowFilter {
            distance: 7
            angle: 10
            opacity: .8
        }]
        shape: Text {
            x: 3, 
            y: 50, 
            font: new Font("Verdana", "BOLD", 70),
            content: "JFX" 
        }
        content: Circle {
            transform: translate(75, 75)
            radius: 74
            stroke: black
            strokeWidth: 1.5
            fill: RadialGradient {
                cx: bind [0..150] dur 10000
                cy: 150
                focusX: 150
                focusY: 40
                radius: 100
                stops:
                [Stop {
                    offset: 0.0
                    color: green
                },
                Stop {
                    offset: 0.5
                    color: blue
                },
                Stop {
                    offset: 1.0
                    color: yellow
                }]
                spreadMethod: REFLECT
            }
        }
    },
    ]
}

Around Wikia's network

Random Wiki