Fandom

Planet JFX

JFX Logo - pforhan

118pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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
            }
        }
    },
    ]
}

Also on Fandom

Random Wiki