宜蘭縣教育支援平台 會員登入 會員註冊 我的i教書

« 上一篇 | 下一篇 »

Scratch 程式設計

偵測目前系統時間
--(數字鐘、時鐘)--

這是Scratch 2.0之後新增的(偵測電腦時間的積木指令),可以用來偵測目前電腦的系統時間。以下小忠忠老師就用這個積木指令來設計兩個與電腦系統時間一樣的時鐘應用。

《以下請用滑鼠點選影片右下角,在YouTube上全螢幕觀看有HD》

一、【數字鐘】

(點擊綠旗可線上執行程式)

 1.使用PPT製作【文字圖檔PNG】。新增角色:匯入外部圖檔角色,調整大小、位置。

  

2.新增變數(年、月、日、時、分、秒、星期),利用(偵測積木)編寫(目前的時間)程式的(數字鐘)程式。

3.【星期幾】的部份目前有程式上的BUG,可先暫時不要使用。

二、【圓形時鐘】

(點擊綠旗,可使線上執行與電腦時間一模一樣的時鐘喔!)

1.選擇外部(時鐘圖形)檔案,匯入Scratch角色中,在其(造型)的(繪圖工具)去背景。

2.新增角色:自己畫新角色(時針、分針、秒針),將造型中心座標移至(0,0)對齊。

   試算:時針、分針、秒針轉動的角度大小。(國小高年級數學喔!)


 公式:

秒針角度=*6.............. (scratch):(*6)

分針角度=(+/60)*6......(scratch):(分*6)+(秒/60*6)

時針角度=(+/60+/3600)*30....... (scratch):(時*30)+(分/60*30)+(秒/3600*30) 

 

 




創用授權(CC)-姓名標示-非商業性-相同方式分享 2.5 台灣版
 
 
用LINE傳送

  1. Re: (08-3) Scratch 2.0 偵測目前電腦系統時間--(數字鐘+時鐘)-(影音版)

    I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information.
    coronavirus yucatan

    [回覆] asdad 迴響於 23 元月, 2021 22:06

  2. Re: (08-3) Scratch 2.0 偵測目前電腦系統時間--(數字鐘+時鐘)-(影音版)

    Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!.
    Heimautomatisierung

    [回覆] aassad 迴響於 19 元月, 2021 21:45

  3. Re: (08-3) Scratch 2.0 偵測目前電腦系統時間--(數字鐘+時鐘)-(影音版)

    Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me.
    tree surgeons colchester

    [回覆] asd 迴響於 19 元月, 2021 00:36

  4. Re: (08-3) Scratch 2.0 偵測目前電腦系統時間--(數字鐘+時鐘)-(影音版)

    I found your this post while searching for information about blog-related research ... It's a good post .. keep posting and updating information.
    alquiler de carros santa marta

    [回覆] assad 迴響於 16 元月, 2021 18:36

  5. Re: (08-3) Scratch 2.0 偵測目前電腦系統時間--(數字鐘+時鐘)-(影音版)

    Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.
    online marketing

    [回覆] sadsaas 迴響於 04 元月, 2021 00:52

  6. Re: (08-3) Scratch 2.0 偵測目前電腦系統時間--(數字鐘+時鐘)-(影音版)

    This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article.
    clima controlo

    [回覆] dsad 迴響於 03 元月, 2021 21:37

  7. Re: (08-3) Scratch 2.0 偵測目前電腦系統時間--(數字鐘+時鐘)-(影音版)

    Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
    follower kaufen PayPal

    [回覆] ss 迴響於 03 元月, 2021 06:12

  8. Re: (08-3) Scratch 2.0 偵測目前電腦系統時間--(數字鐘+時鐘)-(影音版)

    I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks.

    [回覆] pool tile cleaning service 迴響於 29 十二月, 2020 18:28

  9. Re: (08-3) Scratch 2.0 偵測目前電腦系統時間--(數字鐘+時鐘)-(影音版)

    I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.
    visit here

    [回覆] Dani 迴響於 29 十二月, 2020 03:09

發表迴響

 暱稱 (必填)

 悄悄話

 標題

 個人網頁

 電子郵件

authimage 
 認證碼 (必填)