Author Topic: Four-Level Grayscale Drawing program  (Read 2278 times)

0 Members and 1 Guest are viewing this topic.

Offline adrusi

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +4/-0
    • View Profile
    • Adrusi
Four-Level Grayscale Drawing program
« on: May 30, 2013, 05:09:52 pm »
I made a little 4-level grayscale picture editor. It operates on the OS vars Pic3 (back buffer) and Pic4 (main buffer), which can both be either in ram or archive.

It's nothing special, but it's (hopefully) the last little project I do before I make something a bit bigger and more unique. That said, it's a decent tool and might be nice if you want to doodle with something a bit more than the TIOS drawing tools.

Controls:
  • F1, F2, F3 and F4 set the color to draw with. F1 is black and F4 is white. White is the default, which can be confusing since it looks like it's not drawing anything at first. I probably should have initialized it to black, but I'm lazy.
  • 0 enters pixel mode, which sets the pixel under the cursor to the selected color when 2nd is held.
  • 1 enters line mode, which draws lines of the specified color. Hit 2nd to set the endpoints. Hit mode to cancel a started line.
  • 2 enters rectangle mode, which draws a filled rectangle. Hit 2nd to set the corners. Hit mode to cancel a started rectangle.
  • Hold alpha to speed up cursor movements, useful when moving to the opposite side of the screen or if there's lag caused by drawing large lines or rectangles.


Offline Vijfhoek

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 120
  • Rating: +13/-1
    • View Profile
Re: Four-Level Grayscale Drawing program
« Reply #1 on: May 30, 2013, 05:20:54 pm »
Sounds fancy, should check it out. One question though, what's the difference between the first and the second download?
::EDIT:: Can't seem to get it to work in Wabbitemu on a virtual TI-84+ Silver Edition running 2.55MP, the screen just glitches out and if I press, it outputs " xiting..." and returns control to the OS.
« Last Edit: May 30, 2013, 05:34:05 pm by Vijfhoek »

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: Four-Level Grayscale Drawing program
« Reply #2 on: May 30, 2013, 06:45:51 pm »
Maybe you need both programs?
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline adrusi

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +4/-0
    • View Profile
    • Adrusi
Re: Four-Level Grayscale Drawing program
« Reply #3 on: May 30, 2013, 07:51:04 pm »
Sorry, I should have put this in the original post. It expects the OS vars "Pic3" and "Pic4" to be defined. If they're not it should display an error message, but it might have gotten erased immediately, I haven't tested that since I wrote that code yesterday when I started. The screen glitching out is probably it trying to display the undefined picvars.

Just do StorePic 3:StorePic 4 before running it. I guess the program should do that by itself, but whatever. It will work with the picvars from archive though.

The program file with the theta is the Axe source code and the other one is an actual runnable assembly program.

Offline Vijfhoek

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 120
  • Rating: +13/-1
    • View Profile
Re: Four-Level Grayscale Drawing program
« Reply #4 on: May 31, 2013, 11:59:03 am »
Okay, it works. Looks pretty neat, maybe a bit tedious to do pixelart.