QB64.org Forum

Active Forums => Programs => Topic started by: CharlieJV on April 06, 2022, 09:24:54 pm

Title: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: CharlieJV on April 06, 2022, 09:24:54 pm
Very early stages, throwing out there for those interested.

BASIC Anywhere Machine version:

User guide:

so mouse clicking on "canvas" to draw, mouse clicking on "f" and "b" to toggle whether a color choice applies to foreground or background, and mouse clicking on color to select it.

key press will set the brush to the matching character.

More later !
Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: SierraKen on April 07, 2022, 05:41:11 pm
Wow stuff like that is old old school. :) I remember my first online friend made something like that, but the grid was smaller and it wasn't ASCII, instead it was a Sprite Editor, to be used with other games and programs. Nowadays a sprite editor would have to be a bit larger though, because of the larger monitors and better graphics.
Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: CharlieJV on April 07, 2022, 08:01:46 pm
Just uploaded a new version of that program.  (links in original post don't change.)

Made the color choices two characters wide instead of one.

changed the "f" and "b" label toggles to "foreground" and "background".

got rid of the brush instructions, which I will add to the intro screen instead.

added intro screen (instructions pending) to ask for character width and height of the canvas.

fixed a problem that caused drawing past either left or right edges of canvas to "wrap" the drawing, even though the mouse is way past the edge of the canvas.

Good times.

On my immediate todo: turn on/off the grid, which will require storing the current drawing to re-render the drawing after toggling the grid.

Then get QB64 version working  (I think mouse-input is the only incompatibility.)

At some point: saving the drawing to something (file? browser localstorage? clipboard?) and loading a previously saved drawing.

Lines? Shapes?  Eraser?  Fill ?  Maybe.

ASCII characters that we don't see on our keyboards (well, unless you have a Vic-20/C64 kind of keyboard ...)

Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: bplus on April 07, 2022, 09:19:36 pm
Ken was working on pretty good paint program some time ago, including a picture save.
Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: SierraKen on April 09, 2022, 08:13:11 pm
Yeah, here's Paint Pixels 7, before I got into using window menus. I can't seem to find 8 or 9 on this forum, but I'll put 9 up after this post if you are interested.

https://qb64forum.alephc.xyz/index.php?topic=1992.msg112372#msg112372 (https://qb64forum.alephc.xyz/index.php?topic=1992.msg112372#msg112372)
Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: SierraKen on April 09, 2022, 08:20:25 pm
Here is my Paint Pixels 9. It might take awhile to learn, maybe you can learn sections at a time if you want to. It's been a couple years since I made this, using help from this forum, so I myself would have to relearn some of it. It is attached as Paint Pixels 9.zip
Put all the files in the same directory.


Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: CharlieJV on April 09, 2022, 08:38:31 pm
I've got QB64 running on Linux, and can't get these to work.

Could it be that these programs were built for Windows ?
Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: SierraKen on April 09, 2022, 08:44:08 pm
Ah yeah, I know 9 won't work because it uses Windows internal commands. I would think 7 should work though, but I don't know hardly anything about Linux. Sorry they aren't much use. If you want, you can just look at the code and see how I used variables and circles and boxes, etc. You can break it apart if you wish and put it in your own code, etc.
Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: bplus on April 09, 2022, 08:49:28 pm
I know Linux is strict about upper and lower case file names.

I just looked at old thread and it seems the Paint Box or Orbits needs a 2 click system one to start and one to stop, otherwise the start of next was the end of the other. Don't know what version 9 is doing.

 


Plus a problem with saveimage.bm, it is not updated to QB64 v 2.0+ using a Function name as a temp variable is no longer valid.

Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: CharlieJV on April 09, 2022, 08:55:18 pm
I know Linux is strict about upper and lower case file names.

I just looked at old thread and it seems the Paint Box or Orbits needs a 2 click system one to start and one to stop. Don't know what 9 is doing.

Yeah, those were annoying but easy to fix.

COMDLG32 is a Windows DLL file.  So I can't see this program working on my computer.
Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: bplus on April 09, 2022, 08:59:01 pm
Yeah, those were annoying but easy to fix.

COMDLG32 is a Windows DLL file.  So I can't see this program working on my computer.


Oh they used that too! Yep you're right!
Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: bplus on April 09, 2022, 09:05:37 pm
The color picker and Paint3 subs (my contributions) pretty useful as well as save image code, wouldn't be hard to fix, Steve may have already!
Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: SMcNeill on April 09, 2022, 09:16:58 pm
The color picker and Paint3 subs (my contributions) pretty useful as well as save image code, wouldn't be hard to fix, Steve may have already!

https://qb64forum.alephc.xyz/index.php?topic=1651.0 Latest version works just fine with the changes to Function.  Just update your library.  ;)
Title: Re: ASCII Draw(BAM program in progress, QB64 version to follow)
Post by: bplus on April 09, 2022, 09:29:56 pm
BTW I am talking about this color picker, in version 6/7? I think they changed to image later?
  [ This attachment cannot be displayed inline in 'Print Page' view ]