Author Topic: [CSE BASIC] PainTI  (Read 7662 times)

0 Members and 1 Guest are viewing this topic.

Offline 123outerme

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 458
  • Rating: +23/-0
  • Self-unpaid intern
    • View Profile
[CSE BASIC] PainTI
« on: October 01, 2014, 04:38:36 pm »
Just for the lulz, I decided to make a paint program in TI-Basic. It only draws in lines and boxes, currently, but you can choose your color and swap colors in the middle of your paint session, or even save and come back to your picture at another time! I plan to add more features like advanced drawing methods.
In my latest version, I have freeform drawing and saving your work. I plan to add even more, though!

Here's what I have so far:

I did implement saving, but either Wabbit doesn't support Pic saving or it got corrupted a bit when I transferred it.
« Last Edit: October 10, 2014, 10:54:48 pm by 123outerme »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [CSE BASIC] PainTI
« Reply #1 on: October 01, 2014, 09:42:16 pm »
Interesting. What I am curious about is how lines work since it doesn't look like there is a different cursor for when you are starting to draw a line. To save drawings you would need to store them into picture files.

Offline 123outerme

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 458
  • Rating: +23/-0
  • Self-unpaid intern
    • View Profile
Re: [CSE BASIC] PainTI
« Reply #2 on: October 01, 2014, 09:47:19 pm »
Interesting. What I am curious about is how lines work since it doesn't look like there is a different cursor for when you are starting to draw a line. To save drawings you would need to store them into picture files.

You just hit 2nd at the first point, hit 2nd at the second point, and the. it draws a line. I plan on adding the different cursors later. As for storing them into picture files, Kerm suggested that and I'm working on it :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [CSE BASIC] PainTI
« Reply #3 on: October 02, 2014, 11:40:27 am »
Ok thanks for the info. For the cursor you could try to make it so that it blinks between different colors when you are selecting the second line point so it's easier to distinguish. Something I wonder though is how you will work out the issue about stuff being erased when you move the cursor over it? Recalling the picture would fix it but that's slow.

Offline 123outerme

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 458
  • Rating: +23/-0
  • Self-unpaid intern
    • View Profile
Re: [CSE BASIC] PainTI
« Reply #4 on: October 02, 2014, 05:08:03 pm »
Ok thanks for the info. For the cursor you could try to make it so that it blinks between different colors when you are selecting the second line point so it's easier to distinguish. Something I wonder though is how you will work out the issue about stuff being erased when you move the cursor over it? Recalling the picture would fix it but that's slow.
I can make it a circle when it's selecting the second point, and I'll work on it.
As for the stuff being erased, you can turn on no-erasing-cursor mode (freeform drawing, for now) and go through the line like that. I'll see if there's anything I can do to minimize cursor erasing.

Speaking of that, I have done a few things:
*Saving and loading
*Freeform drawing
*Other miscellaneous things
I will upload a screenshot when I have time.

Edit: Added the different cursor. It now blinks between circle and solid, but I don't slow down a lot so you can see it.
« Last Edit: October 02, 2014, 06:12:41 pm by 123outerme »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [CSE BASIC] PainTI
« Reply #5 on: October 03, 2014, 02:17:49 am »
Actually, would the Input command with no argument work? I'm unsure if you use it but if you use Input with no argument, it lets you select a location on the graph screen then returns the X and Y coordinates. Maybe that's what you meant about freeform mode but otherwise it could be an alternative that prevents the cursor from erasing everything on its path.





Basically it's a point and click command.
« Last Edit: October 03, 2014, 02:21:16 am by DJ Omnimaga »

Offline Princetonlion.tibd

  • Members
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 790
  • Rating: +3/-4
    • View Profile
Re: [CSE BASIC] PainTI
« Reply #6 on: October 03, 2014, 10:13:33 am »
I keep reading the name as "Pain TI" :P

So now you can only draw points, but plan to make it like the pen in the 83+/84+ series?

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [CSE BASIC] PainTI
« Reply #7 on: October 04, 2014, 03:50:04 am »
inb4 paint it wor painTIT
eeeeerm

yay a paint prog for the cse :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [CSE BASIC] PainTI
« Reply #8 on: October 06, 2014, 07:35:39 pm »
inb4 paint it wor painTIT
eeeeerm

yay a paint prog for the cse :D
O.O

But yeah PaintIt would be a good name (although some people might think it's a game)