1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?php namespace GameBoy\Canvas; /** * Interface to draw the GameBoy output * GameBoy screen size: 160 x 144. */ interface DrawContextInterface { /** * Draw image on canvas. * * @param array $canvasBuffer If colored, each pixel => 4 items on array (RGBA) */ public function draw($canvasBuffer); }