Created
January 30, 2023 07:48
-
-
Save Nia-TN1012/09702b84ba7f9c21f5ef73e54ab4daf1 to your computer and use it in GitHub Desktop.
なでしこでカレンダーを出力するスクリプトです。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 名前 : Nia Tomonaka | |
# Twitter : https://twitter.com/nia_tn1012 | |
母艦の0、0を$FFF5DEE2で塗る。 # 薄い撫子色 | |
当月1日は「{今年}/{今月}/01」。 | |
当月日数は当月1日と「{今年}/{来月}/01」の日数差。 | |
オフセットで1から当月1日の曜日番号取得まで繰り返す | |
「 」と継続表示。 | |
シーケンスで1から当月日数まで繰り返す。 | |
シーケンスを「%3d」で形式指定して継続表示。 | |
もし、( 当月1日の曜日番号取得 + シーケンス ) % 7 == 0ならば | |
「」と表示。 # 改行します。 | |
基本X = 10。 # 日曜日の位置に合わせます。 | |
# Calender.nako | |
# Copyright (c) 2014-2023 Nia T.N. Tech Lab. / Chronoir.net. | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GitHubのアカウント統合のため、Myoga1012→Nia-TN1012に移行しました。
旧URL: https://gist.github.com/Myoga1012/f8d886557c23ac19efb3