Learn R Programming

plotcli (version 0.2.0)

pixel_to_braille: Convert pixel coordinates to Braille cell and dot position

Description

Convert pixel coordinates to Braille cell and dot position

Usage

pixel_to_braille(px, py, canvas_rows, canvas_cols)

Value

List with cell_row, cell_col, dot_row, dot_col

Arguments

px

Pixel x coordinate (1-based)

py

Pixel y coordinate (1-based, from top)

canvas_rows

Number of character rows in canvas

canvas_cols

Number of character columns in canvas