- Added 'pixeltrix' class to matrix objects output by
click_pixels()
andedit_pixels()
, and includedis_pixeltrix()
andas_pixeltrix()
to detect and coerce (#36, thanks @trevorld). - Added warning to README and function docs about flickering and the bell (#31, #32, thanks @adrianadepalma).
- Added additional input checks to
check-utils.R
. draw_pixels()
now findsn_states
(#24).- Allow for an increased number of states in
edit_pixels()
(#25).
- A named character of colours is now provided as an extra attribute to matrices output from
click_pixels()
(#3, #17, thanks @TimTaylor). - A named character vector of colours is now accepted as input to
click_pixels()
,edit pixels()
,draw_pixels()
andframe_pixels()
. - Breaking:
blue
andmario
demo datasets no longer available;pkmn_sprite
andmario_frames
replace them (#22). - Updated and expanded function documentation and README (#21).
- Reused input checks have been generalised into
R/utils-check.R
. - Expanded tests to cover argument input errors.
- Fixed lack of
n_states()
being passed toedit_pixels()
inframe_pixels()
(#18, thanks @TimTaylor), replacing dots inframe_pixels()
with full set of arguments to pass toclick_pixels()
andedit_pixels()
. - Altered slightly the title and description of the package.
- Set default canvas dimensions to 8 by 8.
- Fixed integer check in
click_pixels()
.
- Added
draw_pixels()
to plot the matrix withimage()
to the plotting window (#12). - Added
frame_pixels()
andgif_pixels()
to capture successive 'frames' of an animation and write it to a gif (#13). - Suggested {gifski} for creating gifs (towards #15).
- Provided to the user some instruction messages when they enter interactive mode.
- Improved code commentary.
- Added two matrix outputs as example datasets (Pokemon and Mario).
- Added basic error tests.
- Allowed for single row and single column matrices to be accepted by
click_pixels()
andedit_pixels()
(#4). - Removed redundancies in function documentation.
- Added an
edit_pixels()
function so that a matrix created withclick_pixels()
can be updated (#6). - Moved support functions to
utils.R
. - Simplified the README and added a blog badge.
- Added argument
n_states
toclick_pixels()
that lets users choose the number of 'states' that a pixel can take (#4). - Added argument
grid
toclick_pixels()
that lets users turn on or off a grid overlay (#5). - Changed colours to greyscale.
- This version was the basis for the original blogpost.
- Went the non-Shiny route and used
locator()
andimage()
for interactivity in theclick_pixel()
function (#2). - Added GitHub Actions for R-CMD check, tests, {pkgdown} website.
- This version was previewed in a tweet.
- Added basic image-click template app from RStudio as the function
pixeltrix()
.
- There is no functionality, lol.