当前位置:网站首页>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

边栏推荐
- Nlp-d59-nlp game D28 - I think it's OK - stage summary - mentality adjustment
- Oracle数据库监听文件配置
- GeoGebra 实例 时钟
- Dragging El table sortablejs
- 5分钟,客服聊天处理技巧,炉火纯青
- 20、 Processor scheduling (RR time slice rotation, mlfq multi-level feedback queue, CFS fully fair scheduler, priority reversal; multiprocessor scheduling)
- 二叉樹第一部分
- Amazing tips for using live chat to drive business sales
- 如何解决独立站多渠道客户沟通难题?这款跨境电商插件一定要知道!
- 【Eureka注册中心】
猜你喜欢

indexedDB本地存储,首页优化

How to solve multi-channel customer communication problems in independent stations? This cross-border e-commerce plug-in must be known!

R 椭圆随机点产生并画图

Prct-1400: failed to execute getcrshome resolution

IDEA 无法保存设置 源根 D:XXXX在模块XXX中重复

英伟达这篇CVPR 2022 Oral火了!2D图像秒变逼真3D物体!虚拟爵士乐队来了!

居家办公如何管理数据中心网络基础设施?

grpc本地测试联调工具BloomRPC

Event registration Apache pulsar x kubesphere online meetup hot registration

《MATLAB 神经网络43个案例分析》:第32章 小波神经网络的时间序列预测——短时交通流量预测
随机推荐
Ora-16038 ora-19502 ora-00312 troubleshooting
PTA monkey chooses King (Joseph Ring problem)
【自定义Endpoint 及实现原理】
latex公式及表格识别
二十、处理器调度(RR时间片轮转,MLFQ多级反馈队列,CFS完全公平调度器,优先级翻转;多处理器调度)
二叉树第一部分
【Eureka 源码分析】
el-table表格的拖拽 sortablejs
About thinkphp5, use the model save() to update the data prompt method not exist:think\db\query- & gt; Error reporting solution
编程题(持续更新)
ByteDance Interviewer: talk about the principle of audio and video synchronization. Can audio and video be absolutely synchronized?
5 minutes, excellent customer service chat handling skills
PostgreSQL DBA快速入门-通过源码编译安装
Codeforces Round #392 (Div. 2) D. Ability To Convert
5分钟,客服聊天处理技巧,炉火纯青
针对《VPP实现策略路由》的修正
【Eureka注册中心】
新手怎么选择投资理财产品的等级?
Algorithm -- find and maximum length k subsequence (kotlin)
canvas 绘制图片