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
}
查看全文
相关阅读:
js获取当前时间
报错: unable to register MBean
elasticsearch UNASSIGNED 处理
esql
记一次shell脚本编写及执行
elasticsearch _script 脚本排序
六大类常用的专业搜索工具
动态设置所有string字段不分词
@ResponseBody和@RequestBody使用
Request method 'POST' not supported
原文地址:https://www.cnblogs.com/yforg/p/1182378.html
最新文章
jconsole工具使用----jvm内存泄漏问题
Windows 端口占用解决
Linux git clone 项目
docker rpc error: code = 14 desc = grpc: the connection is unavailable
Mysql ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes
MySQL 游标使用 多字段
阿里云 RDS for MySQL 物理备份文件恢复到自建数据库
服务器还原阿里云Mysql数据库
TensorFlow Minist零基础弄明白 反向传播算法
TensorFlow Minist零基础弄明白 交叉熵
热门文章
线性代数
Mysql查询某字段值重复的数据
css去除ios文本框默认圆角
file_put_contents写入文字换行
百度地图api实例
织梦默认编辑器增加字体
织梦搜索页使用arclist标签
dedecms织梦判断当前页面是首页、栏目页还是文章页
css为第几个倍数元素添加样式
多个onload事件写法
Copyright © 2011-2022 走看看