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

Could this be done without Shiny? #2

Closed matt-dray closed 1 year ago

matt-dray commented 1 year ago

Could there be a function that plots a PNG grid that you can click with locator() (see my blog about locator or my {plunderplot} package); the returned point is evaluated; and the PNG is updated so the clicked zone is now black. Then you can click another square, or the same one to return its colour to white.