PHP Класс GameBoy\Canvas\TerminalCanvas

Наследование: implements GameBoy\Canvas\DrawContextInterface
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$colorEnabled boolean If is a color enabled canvas, set to true

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__construct ( )
draw ( object $canvasBuffer ) Draw image on canvas using braille font.

Описание методов

__construct() публичный Метод

public __construct ( )

draw() публичный Метод

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

Описание свойств

$brailleCharOffset защищенное свойство

The blank brailler char
protected String $brailleCharOffset
Результат String

$canvas защищенное свойство

protected $canvas

$colorEnabled публичное свойство

If is a color enabled canvas, set to true
public bool $colorEnabled
Результат boolean

$currentSecond защищенное свойство

protected $currentSecond

$fps защищенное свойство

protected $fps

$framesInSecond защищенное свойство

protected $framesInSecond

$height защищенное свойство

protected $height

$lastFrame защищенное свойство

protected $lastFrame

$lastFrameCanvasBuffer защищенное свойство

protected $lastFrameCanvasBuffer

$pixelMap защищенное свойство

Braille Pixel Matrix ,___, |1 4| |2 5| |3 6| |7 8| `````
protected Array $pixelMap
Результат Array

$width защищенное свойство

protected $width