One of my friends asked if i could make a draw program, so i did
.
Features: Menu's: - Mode menu - Select actions/drawing modes
- Open with [mode]
- Navigate with [up]/[down]
- select with [2nd], [mode] or [enter]
- Size menu - Set pen size
- Open with [alpha]
- change size with [up]/[down]
- Select with [alpha]
- Pattern menu - Set drawing pattern
- Open with [X,T,θ, n]
- Navigate with [up]/[down]
- Select with [2nd], [X,T,θ, n] or [enter]
Actions/Drawmode's -
Pen:
- Draws with the selected pattern and size
- draw by holding [2nd]
- Set size with [alpha]
-
Eraser:
- Clears with the selected size
- erase by holding [2nd]
- Set size with [alpha]
-
Quit:
- Exits the program
-
Clear:
- Clears the image
- Activates immediately and selects pen after activating
-
Line:
- Draw a line
- Press [2nd] for point 1 and a second time for point 2
- Press [Del] to cancel
-
Invert:
- Inverts the image
- Activates immediately and selects pen after activating
-
Circle:
- Draws a circle
- Press [2nd] to set the origin and a second time for a point to specify the radius
- Press [del] to cancel
-
Flood:
- Floods an area with the selected pattern
- Activates when [2nd] is pressed
-
Save:
- Save current image to a pic var
- Displays an error message when there is too little free ram
-
Open:
- Open pic var and copy to image, overwriting everything
- Diplays an error message when the pic var is undefined
Misc - Hold [Y=] to speed up the cursor
- When quitting, the current image is saved to an appvar and loaded when the program is reopened
Credits to DarkestEx for the pic pixel test algoritm and to MGOS for the flood fill
Download zip contains:
- Draw.8xk -- the main app
- Draw.8xp -- the axe source
- readme.txt -- the readme
This was intended as App but will probably work when compiled as Program, though you will have to change the name
as it contains lower case characters.
If you find any bugs or have any ideas i should add let me know.
Have fun with it