PHP Class GameBoy\Canvas\TerminalCanvas

Inheritance: implements GameBoy\Canvas\DrawContextInterface
Afficher le fichier Open project: gabrielrcouto/php-terminal-gameboy-emulator

Méthodes publiques

Свойство Type Description
$colorEnabled boolean If is a color enabled canvas, set to true

Protected Properties

Свойство 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

Méthodes publiques

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

Method Details

__construct() public méthode

public __construct ( )

draw() public méthode

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
Résultat String

$canvas protected_oe property

protected $canvas

$colorEnabled public_oe property

If is a color enabled canvas, set to true
public bool $colorEnabled
Résultat 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
Résultat Array

$width protected_oe property

protected $width