Repository navigation
季節の色を日ごとに連続して移し、月の境目で空が急変しないようにする - #80
Merged
Merged
Conversation
季節を月で4つに区切り、季節ごとの固定の色を混ぜていたため、 8月31日から9月1日のような境目で、一晩のうちに空の色が変わっていた (同じ時刻の空の色差ΔEが最大11)。 - 各季節の代表日(4/15、7/16、10/16、1/15)で色が最も強く、隣の季節の 代表日へ向けてなだらかに移る SeasonBlend を追加する - 隣り合う2つの季節の色で作った空を、日付に応じて混ぜ合わせる - 隣り合う日の空の色差が一年を通して2.0以下であることを確かめる - 日付ごとに日の出・日の入りが動くと、昼夜の配色の境目のすぐ後の暗さに なる時刻がどこかの日で訪れ、夜のカードの文字のコントラスト比が4.45まで 下がっていた。境目を0.78から0.82へ上げ、どの暗さでも4.9以上を保つ Refs #70 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ATcUWKWDs87zwTrKyiKpY4
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 15, 2026
Owner
Author
|
CIの補足です。 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
季節の色を日付に応じて隣の季節へ連続して移します。月の境目で空の色が一晩のうちに変わる問題を修正します。
Closes #70
原因
Season.from(month:)で季節を月だけで4つに区切り、季節の色(tint)とその強さは季節ごとの固定値でした。季節のあいだを補間していませんでした。変更内容
SeasonBlendを追加しました。各季節の代表日(4/15、7/16、10/16、1/15)で、その季節の色が最も強くなります。そこから次の季節の代表日へ向けて、なだらかに移ります(smoothstep)。5月末・8月末・11月末・2月末で2つの季節が半分ずつになり、月で区切った季節の境目とほぼ一致します。-forceDayOfYear(chore: 季節だけを切り替えて確認できるDebug起動引数と比較テストを追加する #72)で境目の前後を確かめられます。隣り合う日の同じ時刻の空の色差(ΔE、一年の最大値)
変更後の差は、主に日の出・日の入りの時刻が毎日少しずつ動くことによるものです。
昼夜の配色の境目の調整
一年の5日おき×15分おきでカードの文字のコントラストを確かめるテストを追加したところ、2月中旬の18:00に4.48となり、4.5を下回りました。
確認
skyChangesGraduallyFromDayToDay: 隣り合う日の同じ時刻(7:00/12:00/17:45/22:00)の空の色差が、一年を通して2.0以下seasonsBlendBetweenTheirRepresentativeDays: 代表日は単一の季節、5/31は春と夏が半分ずつ、年をまたいで秋から冬へ移る、割合の合計が常に1cardTextStaysReadableOnEveryDayOfTheYear: 5日おき×15分おきの本文コントラストが4.5以上BusTimeWidgetExtensionを警告をエラーにした設定でビルドpython3 Scripts/generate_l10n.py --check既知の失敗(この変更とは無関係)
weekendKeepsTheNoticeAndStillShowsWeekdayTimesはmainでも失敗しています。関連
🤖 Generated with Claude Code
https://claude.ai/code/session_01ATcUWKWDs87zwTrKyiKpY4