Skip to content

Convert images into pixel art, then turn that pixelart into a prime number!

Notifications You must be signed in to change notification settings

gfmortega/primeify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prime-ify!

This program has two main functions

  • Convert images into pixel art that has a limited number of RGB colors in its palette. This uses a (very bad) implementation of Lloyd's Algorithm for k-means clustering, as described on the Wikipedia article.
  • Convert the pixel-art into a prime number! This uses an implementation of the Miller-Rabin primality test, as described in CLRS.

All handling of images is done using PIL (Python Image Library)

For reasonable waiting times, try to prime-ify pixelart that only has a few thousand pixels.

About

Convert images into pixel art, then turn that pixelart into a prime number!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages