数日前、ふと夜空を見上げた。月が綺麗だった。ただ、アクセサリというか、なんかほっとするし、てことで、コンテンツサイドバー(右側の領域)にMoon Phasesを使っているのだけれど、あれ、なんか違うな、と。
単に解像度の問題ね。計算は合ってる。2015年3月17日は 26.134。
この名前の付いた画像しか持ってない、このプラグイン。こんなね:
1 if($ag < 1.84566) {
2 $phase = __('New Moon', 'moon-phases');
3 $image = moon_phases_get_plugin_url() . 'images/new_moon.png';
4 }
5 else if($ag < 5.53699) {
6 $phase = __('Waxing Crescent Moon', 'moon-phases');
7 $image = moon_phases_get_plugin_url() . 'images/waxing_crescent_moon.png';
8 }
9 else if($ag < 9.22831) {
10 $phase = __('First Quarter Moon', 'moon-phases');
11 $image = moon_phases_get_plugin_url() . 'images/first_quarter_moon.png';
12 }
13 else if($ag < 12.91963) {
14 $phase = __('Waxing Gibbous Moon', 'moon-phases');
15 $image = moon_phases_get_plugin_url() . 'images/waxing_gibbous_moon.png';
16 }
17 else if($ag < 16.61096) {
18 $phase = __('Full Moon', 'moon-phases');
19 $image = moon_phases_get_plugin_url() . 'images/full_moon.png';
20 }
21 else if($ag < 20.30228) {
22 $phase = __('Waning Gibbous Moon', 'moon-phases');
23 $image = moon_phases_get_plugin_url() . 'images/waning_gibbous_moon.png';
24 }
25 else if($ag < 23.99361) {
26 $phase = __('Third Quarter Moon', 'moon-phases');
27 $image = moon_phases_get_plugin_url() . 'images/third_quarter_moon.png';
28 }
29 else if($ag < 27.68493) {
30 $phase = __('Waning Crescent Moon', 'moon-phases');
31 $image = moon_phases_get_plugin_url() . 'images/waning_crescent_moon.png';
32 }
33 else {
34 $phase = __('New Moon', 'moon-phases');
35 $image = moon_phases_get_plugin_url() . 'images/new_moon.png';
36 }
ところで、こうやって科学技術に関係するようなものにちょっとでも興味持って WikiPedia 訪れると、時々とても得した気分になるのね。
「秤動(ひょうどう、libration)」。理論的なことよりもね、「わーきれい」って、素直に思うよね。