认识钟表flash课件
2021-11-03 19:01:53 569KB 认识钟表
VB.NET 时钟 圆形钟表,算出每刻度的角度,实际上是(pi/30)*i,为了精确用了Atan(1),因为Atan(1)=PI/4,使用Atan数学函数,必须在程序的开头引入System.Math空间,'创建Graphics对象用于绘图   Dim FrmGraphics As Graphics = Me.CreateGraphics   '设置画面质量(消除锯齿)   FrmGraphics.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias   '创建Pen1对象,颜色为黄色,粗细为3像素   Dim Pen1 As New Pen(System.Drawing.Color.Yellow, 3)   '创建Pen2对象,颜色为黑色,粗细为1像素   Dim Pen2 As New Pen(System.Drawing.Color.Black, 1)   '定义表示刻度的起点和终点数组,坐标原点   Dim StartPoint(59), EndPoint(59), OriginPoint As PointF   '设置坐标原点
2021-11-03 17:10:21 675KB VB源码-系统相关
1
日历使用的是qt自带的日历控件,将钟表和日历绘制在了tab上,钟表很漂亮,嗯,
2021-11-02 07:54:00 13KB qt 钟表 日历 时间
1
表盘式时钟,并显import java.awt.*; import java.awt.event.*; import javax.swing.*; import sun.util.calendar.Gregorian; import java.util.Calendar; import java.util.GregorianCalendar; public class Clock extends JFrame implements ActionListener{ int x, y, x0, y0, r, h, olds_x, olds_y, oldm_x, oldm_y, oldh_x, oldh_y, ss,mm,hh,old_m,old_h,ang; final double RAD = Math.PI/180; public Clock(){ super("Java时钟"); setDefaultCloseOperation(3); Image image = getToolkit().getImage("clock.gif"); setIconImage(image); setSize(200,200); setBackground(Color.black); setLocation(300,150); setResizable(false); show(); int delay = 1000; //创建一个监听事件 ActionListener drawClock = new ActionListener(){ public void actionPerformed(ActionEvent evt){ repaint(); } }; //创建一个时间计数器,每一秒触发一次 new Timer(delay,drawClock).start(); } //实现ActionListener接口必须实现的方法 public void actionPerformed(ActionEvent evt){} //绘制图形 public void paint(Graphics g){ Graphics2D g2D = (Graphics2D)g; Insets insets = getInsets(); int L = insets.left/2, T = insets.top/2; h = getSize().height; g.setColor(Color.white); //画圆 g2D.setStroke(new BasicStroke(4.0f)); g.drawOval(L+40, T+40, h-80, h-80); r = h/2 - 40; x0 = 40 + r - 5 + L; y0 = 40 + r - 5 - T; ang = 60; //绘制时钟上的12个字 for(int i = 1;i <= 12;i ++){ x = (int)((r+10)*Math.cos(RAD*ang)+x0); y = (int)((r+10)*Math.sin(RAD*ang)+y0); g.drawString(""+i, x, h-y); ang -=30; } //获得现在的时间 Calendar now = new GregorianCalendar(); int nowh = now.get(Calendar.HOUR_OF_DAY); int nowm = now.get(Calendar.MINUTE); int nows = now.get(Calendar.SECOND); String st; if(nowh < 10)st = "0"+nowh; else st = ""+nowh; if(nowm<10)st += ":0"+nowm; else st += ":"+nowm; if(nows<10)st += ":0"+nows; else st += ":"+nows; //在窗体上显示时间 g.setColor(Color.pink); g.fillRect(L, T, 50, 28); g.setColor(Color.blue); g.drawString(st,L+2,T+26); //计算时间与度数的关系 ss = 90 - nows*6; mm = 90 - nowm*
2021-11-01 11:36:05 3KB 表盘时钟
1
辽宁省小学数学人教版一年级上册7认识钟表.pdf
2021-10-28 16:02:52 628KB
用原生js实现,学习初练手项目,图片资源来自于网络,因为练手方法比较简单。
2021-10-27 17:03:49 46KB js 钟表 html
1
人教版小学数学一年级上册第八章《认识钟表》PPT课件.ppt
2021-10-24 09:03:08 4.7MB
一年级数学下册 下雨了—学看钟表教案 青岛版五年制 教案.doc
2021-10-21 14:02:15 37KB 小学教案
小学数学人教版一年级上册7认识钟表.docx
2021-10-20 21:02:13 228KB 文档
钟表分针旋转的两种效果,一种是PPT动画大师实现的效果,一种是ppt软件自带的效果,时钟指针旋转ppt动画特效模板。
1