当前位置:网站首页>Geogebra instance clock
Geogebra instance clock
2022-06-24 09:52:00 【Gigi Princess】
In this example, I followed b Standing on a video , This is a link :
[ Learn to use ] Geogebra The clock _ Bili, Bili _bilibili
One 、 Set profile
First draw a circle , Set the radius first 、 center of a circle , Then draw a circle
cR=5
O=(0,0)
cO=Circle(O,cR)
Then set the scale marks on the disc
Hour hand 、 Minute hand and second hand scale lines need to be distinguished , First, draw a dot on the circle , Then draw the tick marks
mPs=Sequence((cR;pi/2-pi/30*k),k,1,60)
mSs=Sequence(Segment(mps(k),0.95*mPs(k)),k,0,60)
hSs=Sequence(Segment(mPs(k),0.9*mPs(k)),k,5,60,5)The text part , Clock number 1~12
hTs=Sequence(Text(k,0.8*mPs(5*k)-(0.3,0.3)),k,1,12)Then draw the pointer
h=Slider(0,24,1)
m=Slider(0,60,1)
s=Slider(0,60,1)Set pointer length
hR=2
mR=3
sR=4Set the angle
sA=pi/2-s/60*2*pi
vS=Vector(0,0+(sR;sA))
mA=pi/2-(m*60+s)/60*60*2*pi
vM=Vector(0,0+(mR;mA))
hA=pi/2-(h*60*60+m*60+s)/12*60*60*2*pi
vH=Vector(0,0+(hR;hA))Next, you can set the pointer to your favorite color
Two 、 Animate
Turn the hour hand 、 Minute and second hands are set to rotate automatically , Set up two sliders , Speed and time ,v It's speed ,t Is time
v=Slider(1,120,1)
t=Slider(0,24*60*60,1,v/(8640))There are now two forms , The first is through t To change s、m、h Value
SetValue(s,Mod(t,60))
SetValue(m,Mod(floor(t/60),60))
SetValue(h,Mod(floor(t/3600),24))The second form is through s、m、h change t Value
First, change the progress bar so that s、m、h It can be downloaded from 60 Continue dragging to automatically jump to 0
Change script directly , In the right-click attribute
s Script :
SetValue(t,Mod(t+1,86400))
SetValue(s,Mod(s+1,60))
SetValue(m,Mod(floor(t/60),60))
SetValue(h,Mod(floor(t/3600),24))m Script :
SetValue(t,Mod(t+60,86400))
SetValue(s,Mod(s+1,60))
SetValue(m,Mod(floor(t/60),60))
SetValue(h,Mod(floor(t/3600),24))h Script :
SetValue(t,Mod(t+3600,86400))
SetValue(s,Mod(s+1,60))
SetValue(m,Mod(floor(t/60),60))
SetValue(h,Mod(floor(t/3600),24))Next , Add a button : start-up 、 stop it 、 Now the time button
start-up Script :
StartAnimation(t,True)stop it Script :
StartAnimation(t,False)
StartAnimation(h,False)
StartAnimation(m,False)
StartAnimation(s,False)present time Script :
ST= The system time is in ()
SetValue(t,ST(4)*3600+ST(3)*60+ST(2))Next, add a screen
Add text setting script :
floor(h/10) The rest of the formula (h,10) : floor(m/10) The rest of the formula (m,10) : floor(s/10) The rest of the formula (s,10) That's about it , The following figure shows the clock I set , Click the current time to update the time to the current time

边栏推荐
- Detailed explanation of ThinkPHP 5.0 Model Association
- Thinkphp5 clear the cache cache, temp cache and log cache under runtime
- 编程题(持续更新)
- NVIDIA's CVPR 2022 oral is on fire! 2D images become realistic 3D objects in seconds! Here comes the virtual jazz band!
- WindowManager 简单悬浮框的实现
- Amazing tips for using live chat to drive business sales
- Codeforces Round #392 (Div. 2) D. Ability To Convert
- SSH Remote Password free login
- Grpc local test joint debugging tool bloomrpc
- 《MATLAB 神经网络43个案例分析》:第32章 小波神经网络的时间序列预测——短时交通流量预测
猜你喜欢

In depth study paper reading target detection (VII) Chinese English Bilingual Edition: yolov4 optimal speed and accuracy of object detection

Indexeddb local storage, homepage optimization

编程题(持续更新)

Talking about the knowledge of digital transformation

关于thinkphp5 使用模型save()更新数据提示 method not exist:think\db\Query-> 报错解决方案

如何规范化数据中心基础设施管理流程

About thinkphp5, use the model save() to update the data prompt method not exist:think\db\query- & gt; Error reporting solution

PTA猴子选大王(约瑟夫环问题)

5 minutes, excellent customer service chat handling skills

June 13-19, 2022 AI industry weekly (issue 102): career development
随机推荐
Grpc local test joint debugging tool bloomrpc
请问有国内靠谱低手续费的期货开户渠道吗?网上开户安全吗?
[GDB debugging tool] | how to debug under multithreading, multiprocessing and running programs
Honeypot 2 hfish, ehoney
About thinkphp5, use the model save() to update the data prompt method not exist:think\db\query- & gt; Error reporting solution
Learn Tai Chi Maker - esp8226 (12) esp8266 multitasking
5 minutes, excellent customer service chat handling skills
顶刊TPAMI 2022!基于不同数据模态的行为识别:最新综述
操作符详解
ssh远程免密登录
Top issue tpami 2022! Behavior recognition based on different data modes: a recent review
Baidu AI template for knowledge understanding
An open source monitoring data collector that can monitor everything
IDEA 无法保存设置 源根 D:XXXX在模块XXX中重复
转:三星电子CEO:一切决策都要从认清自己开始
Seekbar with text: customize progressdrawable/thumb: solve incomplete display
居家办公如何管理数据中心网络基础设施?
ByteDance Interviewer: talk about the principle of audio and video synchronization. Can audio and video be absolutely synchronized?
编程题(持续更新)
GIS实战应用案例100篇(十四)-ArcGIS属性连接和使用Excel的问题