zoukankan
html css js c++ java
做个转圈圈的咚咚
Code
1
public
partial
class
Form1 : Form
2
{
3
public
Form1()
4
{
5
InitializeComponent();
6
}
7
8
private
double
i
=
0
;
9
private
double
j
=
30
;
10
private
double
ii
=
60
;
11
private
double
jj
=
90
;
12
private
Point point_1;
13
private
Point point_2;
14
private
Point point_3;
15
private
Point point_4;
16
17
private
void
timer1_Tick(
object
sender, EventArgs e)
18
{
19
this
.point_1
=
new
Point(
20
(
int
)(
100
*
Math.Sin(i)
+
143
), (
int
)(
100
*
Math.Cos(i))
+
167
);
21
this
.panel1.Location
=
this
.point_1;
22
23
this
.point_2
=
new
Point(
24
(
int
)(
100
*
Math.Sin(j)
+
143
), (
int
)(
100
*
Math.Cos(j))
+
167
);
25
this
.panel2.Location
=
this
.point_2;
26
27
this
.point_3
=
new
Point(
28
(
int
)(
100
*
Math.Sin(ii)
+
143
), (
int
)(
100
*
Math.Cos(ii))
+
167
);
29
this
.panel3.Location
=
this
.point_3;
30
31
this
.point_4
=
new
Point(
32
(
int
)(
100
*
Math.Sin(jj)
+
143
), (
int
)(
100
*
Math.Cos(jj))
+
167
);
33
this
.panel4.Location
=
this
.point_4;
34
35
j
+=
0.05
;
36
ii
+=
0.05
;
37
jj
+=
0.05
;
38
i
+=
0.05
;
39
}
40
41
private
void
button1_MouseMove(
object
sender, MouseEventArgs e)
42
{
43
this
.timer1.Stop();
44
}
45
46
private
void
button1_MouseLeave(
object
sender, EventArgs e)
47
{
48
this
.timer1.Start();
49
}
50
51
private
void
button1_Click(
object
sender, EventArgs e)
52
{
53
54
}
55
}
查看全文
相关阅读:
c#图像处理
事件机制(复习)
.net控件Control透明
什么东西
btn控件
Tao 1.2.0图形框架发布
java 泛型的类型擦除与桥方法
来博客园的第一篇博文
fastjson @JSONField
java文件编译后,出现xx$1.class的原因
原文地址:https://www.cnblogs.com/yforg/p/1182378.html
最新文章
iOS 如何在一个应用程序中调用另一个应用程序
xmpp muc 群聊协议 4
xmpp muc 群聊协议 3
xmpp muc 群聊协议 2
xmpp muc 群聊协议 1
iOS tableview滑动到底部自动加载,向上拽加载
hibernate报错
查锁住的表,以及kill进程,Oracle常用语句
jquery加载页面的方法(页面加载完成就执行)
junit4笔记
热门文章
引入源码
Hibernate 笔记1
执行计划总结
oracle_SQL中ROWID与ROWNUM的使用(转)
为什么有时全表扫描比通过索引扫描效率更高 (转)
sql执行疑问
未完成的控件
c++语法
一个坐标点围绕任意中心点旋转--C#实现
图像旋转
Copyright © 2011-2022 走看看