PixelArtist
Beta member
- Messages
- 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:
So that effectively put my images into the code, there is another file called ImageParticle.FX that I believe controls the floating motion of the images on the screen. However, I only want the images I put in to rotate and not all of the images used by the particle system.
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
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
So that effectively put my images into the code, there is another file called ImageParticle.FX that I believe controls the floating motion of the images on the screen. However, I only want the images I put in to rotate and not all of the images used by the particle system.
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