Skip to content

Latest commit

 

History

History
101 lines (65 loc) · 3.54 KB

File metadata and controls

101 lines (65 loc) · 3.54 KB

src/minipixels/debug/debug.ml

Home · Files

Provides minipixels debug debug facilities for this project.

Package: minipixels.debug.debug

Reachable from entry: yes

Imports

Declarations

captureHash

function captureHash(canvas)

Performs the captureHash operation for the minipixels debug debug module.

Parameter Type Default Description
canvas dynamic canvas value consumed by this operation.

View source

digitPatterns

digitPatterns

Stores module-wide digit patterns state for the minipixels debug debug module.

View source

drawDigit

function drawDigit(canvas, n, x, y, color)

Draws digit through the minipixels debug debug rendering path.

Parameter Type Default Description
canvas dynamic canvas value consumed by this operation.
n dynamic n value consumed by this operation.
x dynamic Horizontal coordinate used by the operation.
y dynamic Vertical coordinate used by the operation.
color dynamic color value consumed by this operation.

View source

drawNumber

function drawNumber(canvas, value, x, y, color)

Draws number through the minipixels debug debug rendering path.

Parameter Type Default Description
canvas dynamic canvas value consumed by this operation.
value dynamic Value consumed or transformed by the operation.
x dynamic Horizontal coordinate used by the operation.
y dynamic Vertical coordinate used by the operation.
color dynamic color value consumed by this operation.

View source

drawStats

function drawStats(game, canvas)

Draws stats through the minipixels debug debug rendering path.

Parameter Type Default Description
game dynamic game value consumed by this operation.
canvas dynamic canvas value consumed by this operation.

View source