|
|
#1 |
|
Beta Member
Join Date: Apr 2009
Posts: 2
|
Hi, I was wondering if anyone knows Java or Java FX? I am trying to modify a little app and can't figure out how to make images rotate in the app. I have added images and they float arbitrarily around but I want them to slowly spin and can not find any information on how to make it do this.
Here is the code I added: Code:
//My Code
var ip = ImageParticle {
imageView: ImageView {
image: Image {
url: "{__DIR__}resources/hector4.png"
}
}
}
particleSystem.createPointParticle(ip, 450, 350);
var ip1 = ImageParticle {
imageView: ImageView {
image: Image {
url: "{__DIR__}resources/alienteapot4.png"
}
}
}
particleSystem.createPointParticle(ip1, 205, 125);
var ip2 = ImageParticle {
imageView: ImageView {
image: Image {
url: "{__DIR__}resources/Baron4.png"
}
}
}
particleSystem.createPointParticle(ip2, 95, 220);
var ip3 = ImageParticle {
imageView: ImageView {
image: Image {
url: "{__DIR__}resources/dotcup4.png"
}
}
}
particleSystem.createPointParticle(ip3, 500, 170);
var ip4 = ImageParticle {
imageView: ImageView {
image: Image {
url: "{__DIR__}resources/orangecup4.png"
}
}
}
particleSystem.createPointParticle(ip4, 175, 330);
//end my code
Any tips on where to start on this would be highly appreciated. Oh ... if anyone wants to take a look at everything involved with the code you can dl it at http://www.pietheory.com/screensaver |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|