Repository navigation
太陽・月の軌道を空の色と同じ日の出・日の入りで動かす - #78
Merged
Merged
Conversation
空の色だけが季節で伸び縮みした時刻を使い、太陽・月の軌道は 日の出5:30・日の入り18:30で固定されていた。冬の夕方は空が夕焼けなのに 太陽がまだ高く、夏の19時台は沈んだ太陽の下で空が明るいままだった。 - 日の出・日の入りを持つ DaylightSchedule を追加し、空の色と天体の軌道が 同じ値を共有する - 季節ごとの日の出・日の入りを、空の色の伸び縮みの逆算から求める - 配色に日の出・日の入りを持たせる Refs #63 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
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 #63
原因
daylightHour)でキーフレームを選んでいました。celestialProgressとcelestialAltitudeには季節補正前の時刻が渡され、軌道の起点と終点はsunriseHour = 5.5、sunsetHour = 18.5の固定値でした。その結果、冬の17:45は空が夕焼けから夜へ移る色なのに太陽が空の中ほどにあり、夏の19:00は太陽が沈んでいるのに空が明るいままでした。
変更内容
日の出・日の入りを持つ
DaylightScheduleを追加しました。軌道の計算(水平位置・高さ)もここへ移しています。SkyPalette.daylight(for:)は、空の色の伸び縮み(正午を中心にdaylightScale倍)を逆にたどり、キーフレーム上の日の出5:30・日の入り18:30が実際に何時になるかを求めます。配色に
daylightを持たせ、太陽・月の軌道と空の色が同じ値を使うようにしました。日の出・日の入りの時刻そのものを日付から求め、南中時刻を中心にする対応は bug: 季節による昼の長さの差が小さく、冬の夕暮れと夏の夜明けが実際より遅い #64 で行います。このPRでは、空と天体のずれをなくすことに絞りました。
確認
celestialOrbitSharesTheSeasonalDaylightWithTheSkyを追加celestialBodyRisesAtDawnAndPeaksAtNoonを、季節ごとの日の出・南中で確かめる形に変更BusTimeWidgetExtensionを警告をエラーにした設定でビルドpython3 Scripts/generate_l10n.py --check既知の失敗(この変更とは無関係)
weekendKeepsTheNoticeAndStillShowsWeekdayTimesはmainでも失敗しています。関連
🤖 Generated with Claude Code
https://claude.ai/code/session_01ATcUWKWDs87zwTrKyiKpY4