This is Java Applet program.. uses Thread.sleep method.. i want to make animation smoother.. but i don't know how... :( | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

This is Java Applet program.. uses Thread.sleep method.. i want to make animation smoother.. but i don't know how... :(

https://code.sololearn.com/cg6ob93ta44e/?ref=app

3rd Oct 2018, 12:50 PM
Shas3 Annabond
Shas3 Annabond - avatar
6 Answers
+ 1
Shaztry✰ Note that my code use html/css for the effect ,dont use java applet... It was for understand what you want get.... P.S. I dont know if you are forced to use java applet but now its obsolete... Use html/css/js with canvas/svg technology instead
5th Oct 2018, 7:21 AM
KrOW
KrOW - avatar
+ 1
I have never developed some java applet then you have to base on this... Anyway, what you mean for "smoother" in this case? You want a soft transition between color changes?
3rd Oct 2018, 1:16 PM
KrOW
KrOW - avatar
+ 1
yes.. It kind of works when I set Thread.sleep(millisecond _values); to max.. but It is not working as expected.. #Thanks_For_the_reply :D
4th Oct 2018, 12:39 AM
Shas3 Annabond
Shas3 Annabond - avatar
+ 1
Shaztry✰ Just for reference, see this web code https://code.sololearn.com/W8K26uNwpT5l/?ref=app You want get the effect on square while you now get the rect effect, right?
4th Oct 2018, 8:35 AM
KrOW
KrOW - avatar
+ 1
yes... thank you for that.. I'll check that out once.. 😊
5th Oct 2018, 2:37 AM
Shas3 Annabond
Shas3 Annabond - avatar
0
yes.. I'm studying BCA and in college we must use Java Applet .. that's why using applet and it is quite wierd.. 🙁 I have Lab programs based on this.... but i would love to use html and css 😘
5th Oct 2018, 11:37 AM
Shas3 Annabond
Shas3 Annabond - avatar