javaFX实例之字体特效

javaFX实例之字体特效

贴代码吧:
import javafx.ui.*;
import javafx.ui.canvas.*;
import javafx.ui.filter.*;
Frame {
    centerOnScreen: true
    title: "JavaFX – Glow Text"
    height: 150
    width: 800
    visible: true
    background: black
    content:
 Canvas {
     content: Text {
         x: 20
         y: 20
         content: "Welcome to F3"
         font: Font { face: VERDANA, style: [ITALIC, BOLD], size: 80 }
         fill: LinearGradient {
             x1: 0, y1: 0, x2: 0, y2: 1
             stops:
             [Stop {
                 offset: 0
                 color: blue
             },
             Stop {
                 offset: 0.5
                 color: dodgerblue
             },
             Stop {
                 offset: 1
                 color: blue
             }]
         }
         filter: [Glow {amount: 0.1}, Noise {monochrome: true, distribution: 0}]
     }
 }
}
 

3 thoughts on “javaFX实例之字体特效

  1. wow gold!All wow gold US Server 24.99$/1000G on sell! Cheap wow gold,wow gold,wow gold,Buy Cheapest/Safe/Fast WoW US EU wow gold Power leveling wow gold from the time you wWorld of Warcraft gold ordered!

    wow power leveling wow power leveling power leveling wow power leveling wow powerleveling wow power levelingcheap wow power leveling wow power leveling buy wow power leveling wow power leveling buy power leveling wow power leveling cheap power leveling wow power leveling wow power leveling wow power leveling wow powerleveling wow power leveling power leveling wow power leveling wow powerleveling wow power leveling buy rolex cheap rolex wow gold wow gold wow gold wow gold -44130572791385

  2. Hi,Do you need digital signage, digital sign, ad players and ad displays? Please go Here:www.amberdigital.com.hk(Amberdigital).we have explored and developed the international market with professionalism. We have built a widespread marketing network, and set up a capable management team dedicated to provide beyond-expectation services to our customers.

    amberdigital Contact Us
    E-mail:sstar@netvigator.com
    website:www.amberdigital.com.hk
    alibaba:amberdigital.en.alibaba.com[ia

  3. wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold
    wow gold -229727807724354

Leave a Reply

Your email address will not be published. Required fields are marked *