如何径向移动图片?
我正在尝试构建一个食物菜单,用户在屏幕监视器上看到的第一件事是十二种不同菜肴的旋转图像。我想象尝试使用线程和计时器,通过更改坐标或布局管理器将对象旋转一圈。
然而,鼓励 3d 旋转运动,但我没有真正的经验。我还听说您可以使用 java applet 并让 javascript 旋转对象。我欢迎任何建议并感谢您的阅读。
I'm trying to build a food menu that the first things users will see on the screen monitor are rotating images of twelve different dishes. I imagine trying to use threads and a timer that will rotate the objects in a circle via changing coordinates or layout managers.
However, 3d rotational movements are encouraged to which I have no real experience in. I've also heard that you can use a java applet and let javascript rotate the objects. I welcome any recommendations and thank you for reading.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您不想使用整个 Java 3D 或 OpenGL 路线,您可以通过使用
AffineTransform
和变化 x 获得 2½ D 效果, y 和外观尺寸。 此处有一个示例。If you don't want to go the whole Java 3D or OpenGL route, you can get a 2½ D effect by using
AffineTransform
and varying x, y and the apparent size. There's an example here.