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
}
查看全文
相关阅读:
ArcGIS Pro 性能诊断
配置ArcGIS Server使用Windows AD Windows集成身份认证
配置ArcGIS Server使用LDAP身份认证
安装ArcGIS Enterprise WebGIS (Portal ArcGIS Server DataStore ) 系统后如何应对网络环境的配置修改
如何迁移 ArcGIS Enterprise WebGIS( Portal Server DataStore )系统
使用ArcGIS Pro编辑在线三维服务图层
ArcGIS JavaScript API 4.x中热度图渲染的使用注意事项
如何扩展Linux虚拟内存文件系统
如何通过REST API登录Portal for ArcGIS
使用ArcGIS Runtime 100 进行本地GIS数据处理的注意事项
原文地址:https://www.cnblogs.com/yforg/p/1182378.html
最新文章
python3.5 自带的虚拟环境使用
凭借对KMP算法的了解,用java实现了一下,结果和java自带的字符串indexOf比,性能差了十倍。。。
我的误解
Java反射API研究(4)——Class中的重要对象
Java反射API研究(3)——java.lang.Class<T>
Java8接口中的默认方法
Java反射API研究(2)——java.lang.reflect详细内容与关系
注解Annotation补充介绍
Java反射API研究(1)——注解Annotation
Java enum枚举类型
热门文章
前端异常捕获与上报
etcd和redis的使用场景
学习docker的相关
web性能监控相关
虚拟列表的渐进式实现(vue,react)
flutter中的状态管理Provider
flutter中的小技巧
flutter中的Key
flutter中的BuildContext
dart中的typedef <函数别名>
Copyright © 2011-2022 走看看