This week's book giveaway is in the Agile forum.
We're giving away four copies of Fixing your Scrum and have Ryan Ripley & Todd Miller on-line!
See this thread for details.
Win a copy of Fixing your Scrum this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Improving Graphics.

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

So far i heave created the following code which create a kind of spinning wheel which i will add answering to. The trouble is it looks horrible and im having trouble finding good java applett programming tutorials. What i would like is for the reel to move smoothley round making it look more like a reel on a fruit/slot machine. Has any one here got any tips/links/websites they could offer to help me do this as I feel like ive hit a brick wall. Thanks in advance.

Alan

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the interval between images too long? if you decrease the sleep interval you might need more images too. Maybe you can edit your images with photoshop or gimp and add some motion blur effects to make it look like its spinning?
I see you have taken care of the double buffering.
Why does it look horrible in your oppinion?
 
Al Hollis
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mainly because im a perfectionist, at the moment the graphics jump 50 pixels per paint rather than smoothly rolling from there starting postion to their ending.. And i cant seem to make this work as it should.
 
A. Wolf
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree, 50 pixels are quite a jump comparing it to the desired "smoothly rolling". I definitely suggest adding more images to fill in the gap.
 
Al Hollis
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why more images? I know that the images need to be moved say 1 pixel at a time downwards, but i have no idea how to do this smoothly .
 
Forget Steve. Look at this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic