Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2013
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import QtQuick 2.0
  2. import QtGraphicalEffects 1.0
  3.  
  4. Item {
  5.     width: 300
  6.     height: 300
  7.  
  8.     Rectangle {
  9.         anchors.fill: parent
  10.         color: "black"
  11.     }
  12.  
  13.     Text {
  14.         id: butterfly
  15.         text: qsTr("Butterfly")
  16.  
  17.         font.family: "Century Gothic"
  18.         font.pointSize: 40
  19.         color: "#b2f3ef"
  20.  
  21.         visible: false
  22.         smooth: true
  23.         anchors.bottom: parent.bottom
  24.         anchors.horizontalCenter: parent.horizontalCenter
  25.     }
  26.  
  27.     Glow {
  28.         radius: 8
  29.         samples: 16
  30.         color: "lightblue"
  31.         source: butterfly
  32.         anchors.fill: butterfly
  33.         transparentBorder: true
  34.     }
  35.  
  36.     Rectangle {
  37.         id: cover
  38.         width: 150
  39.         height: 150
  40.         anchors.horizontalCenter: parent.horizontalCenter
  41.         color: "black"
  42.         border.color: "white"
  43.         visible: false
  44.     }
  45.  
  46.     Glow {
  47.         radius: 10
  48.         samples: 20
  49.         color: "white"
  50.         source: cover
  51.         anchors.fill: cover
  52.         transparentBorder: false
  53.     }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement