Changeset View
Changeset View
Standalone View
Standalone View
src/applications/celerity/CeleritySpriteGenerator.php
| <?php | <?php | ||||
| final class CeleritySpriteGenerator extends Phobject { | final class CeleritySpriteGenerator extends Phobject { | ||||
| public function buildMenuSheet() { | public function buildMenuSheet() { | ||||
| $sprites = array(); | $sprites = array(); | ||||
| $colors = array( | $colors = array( | ||||
| 'dark', | |||||
| 'light', | 'light', | ||||
| ); | ); | ||||
| $sources = array(); | $sources = array(); | ||||
| foreach ($colors as $color) { | foreach ($colors as $color) { | ||||
| $sources[$color.'-logo'] = array( | |||||
| 'x' => 96, | |||||
| 'y' => 40, | |||||
| 'css' => '.'.$color.'-logo', | |||||
| ); | |||||
| $sources[$color.'-eye'] = array( | $sources[$color.'-eye'] = array( | ||||
| 'x' => 40, | 'x' => 40, | ||||
| 'y' => 40, | 'y' => 40, | ||||
| 'css' => '.'.$color.'-eye', | 'css' => '.'.$color.'-eye', | ||||
| ); | ); | ||||
| } | } | ||||
| $scales = array( | $scales = array( | ||||
| ▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines | |||||