Jump to content



Photo
- - - - -

Casio Image Renderer.

fx-7950gii

  • Please log in to reply
2 replies to this topic

#1 JohnThomas

JohnThomas

    Newbie

  • Members
  • Pip
  • 8 posts

  • Calculators:
    fx-9750GII

Posted 21 October 2023 - 09:54 PM

I have created the first version of my python script to take an image and convert it to CASIO BASIC code.

 

It scans every pixel and if the pixel isn't white, it creates a F-Line function to draw that pixel on the screen! The sprite's position can be moved when calling the function (ex; Prog "S_FACE") by setting the X and Y variables to the pixel offset you want.

 

It's still pretty optimized because it uses an F-Line function for every pixel instead of merging pixels by extending the line which I presume would be much faster. Not quite sure how to do this as of yet, but if anyone knows of an algorithm they think would work it'd be greatly appreciated.

 

Along with that I have mad a clear screen program that sets up the screen for sprites to be rendered by using clrgraph and replacing every line with a space.

 

 

If anyone has any suggestions, wants to help, or would like to try it out when it's fully ready please let me know!



#2 JohnThomas

JohnThomas

    Newbie

  • Members
  • Pip
  • 8 posts

  • Calculators:
    fx-9750GII

Posted 21 October 2023 - 10:09 PM

It is designed for the fx-9750gii as that is the calculator it uses, but it should work on any other calculator that uses the same version of CASIO-BASIC and doesn't have a multicolour screen.



#3 JohnThomas

JohnThomas

    Newbie

  • Members
  • Pip
  • 8 posts

  • Calculators:
    fx-9750GII

Posted 21 October 2023 - 11:07 PM

One thing to note is that the calculator can only convert files that are on the smaller side, which isn't a big deal for most things I'm working on. A 1200 line file seems like too much for it to convert.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users