Description Usage Arguments Copyright Notice Performance Issue Examples
Convert image to pseudo pixel art by reducing the resolution of the image and matching the colour with a colour palette.
1 2 3 4 5 6 |
im |
an image; a cimg object, normally loaded by
|
blockSize |
numeric; the size of single pixel or block. |
pal |
character; colour palette used in matching. |
This algorithm is a reduced version of a python script written by Nathan Harper. The intention of this package is to provide an R API of this algorithm. The author of this R package do not own the copyright of this algorithm. Please check the initial source of this algorithm https://github.com/nathanharper/phixelgator and Nathan Harper's Github page https://github.com/nathanharper for more details.
R takes noticeable time to run this algorithm. If you would like to save your time, please use Nathan Harper's original script written in Python https://github.com/nathanharper/phixelgator.
1 2 | # im <- sample_im
# imtopix(im, pal = "appleii")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.