PHP Class GameBoy\Canvas\TerminalCanvas

Inheritance: implements GameBoy\Canvas\DrawContextInterface
Datei anzeigen Open project: gabrielrcouto/php-terminal-gameboy-emulator

Public Properties

Property Type Description
$colorEnabled boolean If is a color enabled canvas, set to true

Protected Properties

Property Type Description
$brailleCharOffset String The blank brailler char
$canvas
$currentSecond
$fps
$framesInSecond
$height
$lastFrame
$lastFrameCanvasBuffer
$pixelMap Array Braille Pixel Matrix ,___, |1 4| |2 5| |3 6| |7 8| `````
$width

Public Methods

Method Description
__construct ( )
draw ( object $canvasBuffer ) Draw image on canvas using braille font.

Method Details

__construct() public method

public __construct ( )

draw() public method

Draw image on canvas using braille font.
public draw ( object $canvasBuffer )
$canvasBuffer object $data = Each pixel (true/false)

Property Details

$brailleCharOffset protected_oe property

The blank brailler char
protected String $brailleCharOffset
return String

$canvas protected_oe property

protected $canvas

$colorEnabled public_oe property

If is a color enabled canvas, set to true
public bool $colorEnabled
return boolean

$currentSecond protected_oe property

protected $currentSecond

$fps protected_oe property

protected $fps

$framesInSecond protected_oe property

protected $framesInSecond

$height protected_oe property

protected $height

$lastFrame protected_oe property

protected $lastFrame

$lastFrameCanvasBuffer protected_oe property

protected $lastFrameCanvasBuffer

$pixelMap protected_oe property

Braille Pixel Matrix ,___, |1 4| |2 5| |3 6| |7 8| `````
protected Array $pixelMap
return Array

$width protected_oe property

protected $width