matt-dray / pixeltrix

:space_invader::computer_mouse: R package: make pixel art interactively in a plot window, get a matrix, make a gif
Other
21 stars 0 forks source link

Grid isn't applied correctly with dimension 1 #28

Closed matt-dray closed 1 year ago

matt-dray commented 1 year ago

The grid is wrong when using a value of 1 for n_rows or n_cols and grid = TRUE.

click_pixels(n_rows = 2, n_cols = 1)

pixeltrix_2-1-grid-bug

The pixels are in the right place (two rows, one column), but the grid is not.

matt-dray commented 1 year ago

Actually, this was happening in a dev branch, not on main.