Skip to content

Converts an image to casioplot python code (has to be in the right dimensions first!!!)

Notifications You must be signed in to change notification settings

SebastianMaung/imagetocasioplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tested on my FX-9750GIII and FX-CG50 (see demo.jpg)
You only need converter.py and image.png
I kept having memory issues on the FX-9750GIII, make sure to keep code.py under 16kb. The FX-CG50 handled my 183.7kb code2.py file well, I didn't try above that.
Image from Tonari no Seki-kun
It'll get converted to black and white, but you need to resize it yourself to the correct dimensions.
The black and white threshold is 127, and it should be adjusted to have the best contrast as possible (it's pretty good at this setting though, at least with Yokoi here)
Adding points to a list and going through them causes a pystack exhausted error for the CG50. I don't know how to fix it right now, so now it'll output two scripts: code1.py is the one with the points in a list. It is significantly lighter than code2.py in filesize, but could get you that error. code2.py is (relatively) huge, but won't give you any issues if you're at 16kb for the 9750GIII or 183kb for the CG50.
TLDR use code2.py if it's less than 132kb (CG50) or 16kb (FX9750GIII). If your image is bigger, try code1.py but it probably won't work.
FX9750GIII: 
code1.py 9.2kb max
code2.py 16.2kb max
FXCG50:
code1.py ~20.0 kb max?
code2.py 183.7kb max

About

Converts an image to casioplot python code (has to be in the right dimensions first!!!)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages