QB64.org Forum
Active Forums => Programs => Topic started by: CharlieJV on April 06, 2022, 09:24:54 pm
-
Very early stages, throwing out there for those interested.
BASIC Anywhere Machine version:
- view source code (https://basicanywheremachine.neocities.org/sample_programs/Ascii%20Draw.bas.html)
- run program (https://basicanywheremachine.neocities.org/sample_programs/Ascii%20Draw.run.html)
User guide:
- Brush style: any character on your keyboard (press a key to set the brush to that character at any time)
- Brush color (foreground and background): pick a color by clicking on it; "f" is foreground, "b" is background, toggle between "f" and "b" by clicking on it
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 !
-
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.
-
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 ...)
-
Ken was working on pretty good paint program some time ago, including a picture save.
-
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)
-
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.
-
I've got QB64 running on Linux, and can't get these to work.
Could it be that these programs were built for Windows ?
-
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.
-
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.
-
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.
-
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!
-
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!
-
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. ;)
-
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 ]