Skip to content

Instantly share code, notes, and snippets.

@Myoga1012
Last active January 30, 2023 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Myoga1012/f8d886557c23ac19efb3 to your computer and use it in GitHub Desktop.
Save Myoga1012/f8d886557c23ac19efb3 to your computer and use it in GitHub Desktop.
なでしこでカレンダーを出力するスクリプトです。
# 名前 : Myoga Screw-bright (旧名:Myoga S. Tomonaka)
# Twitter : https://twitter.com/Myoga1012
母艦の0、0を$FFF5DEE2で塗る。 # 薄い撫子色
当月1日は「{今年}/{今月}/01」。
当月日数は当月1日と「{今年}/{来月}/01」の日数差。
オフセットで1から当月1日の曜日番号取得まで繰り返す
「 」と継続表示。
シーケンスで1から当月日数まで繰り返す。
シーケンスを「%3d」で形式指定して継続表示。
もし、( 当月1日の曜日番号取得 + シーケンス ) % 7 == 0ならば
「」と表示。 # 改行します。
基本X = 10。 # 日曜日の位置に合わせます。
# Calender.nako
# Copyright (c) 2014 Myoga-TN.net All Rights Reserved.
# 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