Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 04-10-2009, 06:38 PM   #1
Beta Member
 
Join Date: Apr 2009
Posts: 2
Default Does anyone know Java?

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
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
PixelArtist is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 09:52 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0