Skip to content

It loads and displays gifs in Logisim. Uses Logisim and Python, as well as the OpenCV and Convert library.

Notifications You must be signed in to change notification settings

sdjidjev/Logi-gif

Repository files navigation

Logi-gif

Logi-gif loads and displays gifs in Logisim. Uses Logisim and Python, as well as the OpenCV and ImageMagick library (installed with brew on Mac OS X). DISCLAIMER: Some gifs work better than others.

Before loading a new gif, do Command+R, and make sure the gif is in the same directory as the python scripts.

To make 64x64 gifs:

convert [gif-name].gif -coalesce [gif-name].gif

convert [gif-name].gif -colorspace Gray -resize 64x64\! [gif-name]_resized.gif

convert [gif-name]_resized.gif [gif-name]_resized_%d.png

Run python images64x64.py

Enter the gif name when it prompts you to do so. Make sure the gif is in the same directory as the code!

Take [gif-name]_1.txt [gif-name]_2.txt [gif-name]_3.txt [gif-name]_4.txt and load it into logisim-img-64x64.circ into the data 1, data 2, data 3, and data 4 RAMs (respectively).

Do Command+K to run the gif.

To make 32x32 gifs:

convert [gif-name].gif -coalesce [gif-name].gif

convert [gif-name].gif -colorspace Gray -resize 32x32\! [gif-name]_resized.gif

convert [gif-name]_resized.gif [gif-name]_resized_%d.png

Run python images32x32.py

Enter the gif name when it prompts you to do so. Make sure the gif is in the same directory as the code!

Take [gif-name].txt load it into logisim-img-32x32.circ into the data RAM.

Do Command+K to run the gif.

Demo

Logi-gif Demo

About

It loads and displays gifs in Logisim. Uses Logisim and Python, as well as the OpenCV and Convert library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages