Java, how to draw constantly changing graphics

后端 未结 4 2118
甜味超标
甜味超标 2020-11-22 15:44

Have not done this before, so obviously I suck at it. Here 64 pixels around current mouse position get drawn little bigger on a form. Problem is, that it\'s \'kind of\' to s

4条回答
  •  伪装坚强ぢ
    2020-11-22 16:04

    Simply use a time delay loop.You can then fine tune the delay by adjusting the limits of i.It also gives you the control to adjust transition speeds by some hit and trials.

    for(long i=0;i<=100000000000;i++);

    canvas.repaint();

    It works very fine with me and also no need to use buffered images.

提交回复
热议问题