Posts: 660
Threads: 142
Joined: Apr 2022
Reputation:
58
(05-31-2022, 11:54 AM)Dav Wrote: @James D Jarvis: Cool. I like it. May I add those in the next version? I was going to add D for selecting a draw color. The Eraser idea actually makes a neat effect - press and hold E while drawing and it draws a dotted line. Thanks for your testing.
Of course please do. That's why we all share. I hadn't noticed that feature with the use of erase, good catch.
Posts: 3,997
Threads: 180
Joined: Apr 2022
Reputation:
222
05-31-2022, 04:27 PM
(This post was last modified: 05-31-2022, 04:29 PM by bplus.)
Well I got Text modified to take different Fonts but not perfectly clean nor fast enough to update Menu on every loop.
Skinny Arial (loaded @128):
And Arial Round Bold = "ARLRDBD.ttf" loaded @128
b = b + ...
Posts: 3,997
Threads: 180
Joined: Apr 2022
Reputation:
222
05-31-2022, 08:46 PM
(This post was last modified: 05-31-2022, 08:53 PM by bplus.)
Aha! Revised Text Sub kicks butt with clean graphics fonts at a range of sizes!
Code: (Select All) Sub Text (x, y, textHeight, K As _Unsigned Long, txt$)
Static beenHere, fontHandle&(6 To 64)
If beenHere = 0 Then
For i = 6 To 64
'fontHandle&(i) = _LoadFont("arial.ttf", i )
fontHandle&(i) = _LoadFont("ARLRDBD.ttf", i)
Next
beenHere = -1
End If
th = textHeight - 4 ' <<< this is needed to fix Dav's menu
_Font fontHandle&(th)
Dim As _Unsigned Long fg, bg
fg = _DefaultColor
bg = _BackgroundColor
Color K, _RGB32(0, 0, 0, 0)
_PrintString (x, y), txt$
Color fg, bg
End Sub
You will have to adjust the sizes and x, y 's for better fitting screening of data but this sub is fast enough to update with each drawing loop! You will also have to include font(s) files for non Windows users.
Clean and fast!
b = b + ...
Posts: 730
Threads: 120
Joined: Apr 2022
Reputation:
106
06-01-2022, 12:16 PM
(This post was last modified: 07-15-2023, 02:06 AM by Dav.)
Great solution, @bplus. I only have the Arial font on my Win7, but it works very well indeed!
Last night I stayed up late and came up with this. Not very fast, but a way to include and use fonts inside a program, which has been a longtime goal of mine. This code decodes a font sheet image and uses that. Can change font size and color. Trick is use a monospaced font and a 256 color font sheet image so _PALETTECOLOR can be used to change the font color.
- Dav
EDIT: New Font data - all characters included now.
Code: (Select All) '============
'MONOFONT.BAS
'============
'Clean looking monospaced font, in code, to use.
'Coded by Dav, JUN/2022
SCREEN _NEWIMAGE(800, 600, 32)
CLS , _RGB(64, 64, 64)
FOR y = 40 TO 540 STEP 40
'random text size
size = INT(RND * 22) + 14
'black shadow
mFont 12, y + 2, size, _RGB(0, 0, 0), "The Quick Brown Fox Was Too Lazy To Jump."
'color of font
mFont 10, y, size, _RGB(RND * 255, RND * 255, RND * 255), "The Quick Brown Fox Was Too Lazy To Jump."
NEXT
SUB mFont (x, y, size, clr&, txt$)
STATIC initfont, fontsheet&
origdest = _DEST
IF initfont = 0 THEN
fontsheet& = _NEWIMAGE(3040, 64, 256)
DIM m AS _MEM: m = _MEMIMAGE(fontsheet&)
A$ = ""
A$ = A$ + "haIkLUVTdSK[lk6Xko]eQSHjZ89b=B9E;MCl3?U`BR49YDSaQO_om_]]]]]]"
A$ = A$ + "]]]]]]]MWfASaM522na]a\_6E2#b_2N_]]]]]]]]]]]m>]gcbNGanmD0X9?3"
A$ = A$ + "i2cmKdnFV_:;oB8nffffffffffffKdNCoGim5\O_00JfC#^\Do:]_Ui[`c_5"
A$ = A$ + "R_]]]]]]]]]]]m6]gd:C_lmkWI#o]_6iGblE><WhbaffffffffffffOEkM]a"
A$ = A$ + "dig_G20=oLb5U9WF;Fn;a^G2NIcO5X?3YMZo]#_anoVJoKg>klo^[OKKKKoI"
A$ = A$ + "]h]L8a]UoYom9g0lYco_93XT_4iml[QSIi7cnmO^g>IOOiJhMlG_BQ20nUP;"
A$ = A$ + "kZcQN2hIH[_V#GFT`b^87;Z3oDn?#6elMaQ8BmE944`#UQBTCF?=UBi3YIVO"
A$ = A$ + "LGOhT#Z6gP<JMY7Ic0PEBRb4UlMShmboTdhWU1LhbUb]mIHi_IA2j:?4NH6c"
A$ = A$ + "lbO9<^HCCFVoK;bVFnG4elDRK<9ANm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mNG_oCiBiWdn"
A$ = A$ + "mhU8CQhUI72K1T^7BNM6NbnX^4_]_HKoGYoSI37h[nacP>\l7VO[fNon<k_i"
A$ = A$ + "D_]#K_Ooogfkg?_mgJoNhIc7eMh]m=Kko<mO<kJnfiLMhj`nn]iilghDNNk_"
A$ = A$ + "iD_]#kMMihcjB9U=ad4oFf\_ka196RGVan3DOTTmlfNon]]]]MAf;hKWOgOG"
A$ = A$ + "N_OOTmENf^]GVm^^KlIMYlbf__9kEn^:<m?:UZaXo9Z?AbNN[>JoVWf]]]]M"
A$ = A$ + "Of;hCWOgOFNNBoE>VWenC>dKK6k?ooGGKoW2i^2QPi865_?fOMhenfnK^m_H"
A$ = A$ + "[>JoR7f]]]]MWfmoUc_k?;??Yo:7ccJo97j]mYKOHG:1O5Lf?<:0HJR0laik"
A$ = A$ + "MoW9ldmkn?TTJUIkgl`^]]]]ke^k?LnMoEiiImgiLN>k;m`MKob]?\kTP?3>"
A$ = A$ + "mG6Y0<?CbL9\YJiI\gLkOYFIdn5?[KKKKk^]kmcVOgODNNJoU>XWbn;>cKKK"
A$ = A$ + "CJP_3>oW690LglmM_PmK^m_>3<H[>[o?TSDj%%%0"
btemp$ = ""
FOR i& = 1 TO LEN(A$) STEP 4: B$ = MID$(A$, i&, 4)
IF INSTR(1, B$, "%") THEN
FOR C% = 1 TO LEN(B$): F$ = MID$(B$, C%, 1)
IF F$ <> "%" THEN C$ = C$ + F$
NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$)
IF MID$(B$, j, 1) = "#" THEN
MID$(B$, j) = "@": END IF: NEXT
FOR t% = LEN(B$) TO 1 STEP -1
B& = B& * 64 + ASC(MID$(B$, t%)) - 48
NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1
X$ = X$ + CHR$(B& AND 255): B& = B& \ 256
NEXT: btemp$ = btemp$ + X$: NEXT
btemp$ = _INFLATE$(btemp$, m.SIZE)
_MEMPUT m, m.OFFSET, btemp$: _MEMFREE m
_DEST fontsheet&: _CLEARCOLOR 0
_DEST origdest
initfont = 1
END IF
'change color to original fontsheet
_DEST fontsheet&
_PALETTECOLOR 15, clr&, fontsheet&
monofont& = _COPYIMAGE(fontsheet&)
xw = INT(size / 2)
FOR i = 1 TO LEN(txt$)
A$ = MID$(txt$, i, 1)
tmp& = _NEWIMAGE(32, 64, 32)
_DEST tmp&
IF A$ = "A" THEN _PUTIMAGE (0, 0), monofont&
IF A$ = "B" THEN _PUTIMAGE (0 - 32, 0), monofont&
IF A$ = "C" THEN _PUTIMAGE (0 - (32 * 2), 0), monofont&
IF A$ = "D" THEN _PUTIMAGE (0 - (32 * 3), 0), monofont&
IF A$ = "E" THEN _PUTIMAGE (0 - (32 * 4), 0), monofont&
IF A$ = "F" THEN _PUTIMAGE (0 - (32 * 5), 0), monofont&
IF A$ = "G" THEN _PUTIMAGE (0 - (32 * 6), 0), monofont&
IF A$ = "H" THEN _PUTIMAGE (0 - (32 * 7), 0), monofont&
IF A$ = "I" THEN _PUTIMAGE (0 - (32 * 8), 0), monofont&
IF A$ = "J" THEN _PUTIMAGE (0 - (32 * 9), 0), monofont&
IF A$ = "K" THEN _PUTIMAGE (0 - (32 * 10), 0), monofont&
IF A$ = "L" THEN _PUTIMAGE (0 - (32 * 11), 0), monofont&
IF A$ = "M" THEN _PUTIMAGE (0 - (32 * 12), 0), monofont&
IF A$ = "N" THEN _PUTIMAGE (0 - (32 * 13), 0), monofont&
IF A$ = "O" THEN _PUTIMAGE (0 - (32 * 14), 0), monofont&
IF A$ = "P" THEN _PUTIMAGE (0 - (32 * 15), 0), monofont&
IF A$ = "Q" THEN _PUTIMAGE (0 - (32 * 16), 0), monofont&
IF A$ = "R" THEN _PUTIMAGE (0 - (32 * 17), 0), monofont&
IF A$ = "S" THEN _PUTIMAGE (0 - (32 * 18), 0), monofont&
IF A$ = "T" THEN _PUTIMAGE (0 - (32 * 19), 0), monofont&
IF A$ = "U" THEN _PUTIMAGE (0 - (32 * 20), 0), monofont&
IF A$ = "V" THEN _PUTIMAGE (0 - (32 * 21), 0), monofont&
IF A$ = "W" THEN _PUTIMAGE (0 - (32 * 22), 0), monofont&
IF A$ = "X" THEN _PUTIMAGE (0 - (32 * 23), 0), monofont&
IF A$ = "Y" THEN _PUTIMAGE (0 - (32 * 24), 0), monofont&
IF A$ = "Z" THEN _PUTIMAGE (0 - (32 * 25), 0), monofont&
IF A$ = "a" THEN _PUTIMAGE (0 - (32 * 26), 0), monofont&
IF A$ = "b" THEN _PUTIMAGE (0 - (32 * 27), 0), monofont&
IF A$ = "c" THEN _PUTIMAGE (0 - (32 * 28), 0), monofont&
IF A$ = "d" THEN _PUTIMAGE (0 - (32 * 29), 0), monofont&
IF A$ = "e" THEN _PUTIMAGE (0 - (32 * 30), 0), monofont&
IF A$ = "f" THEN _PUTIMAGE (0 - (32 * 31), 0), monofont&
IF A$ = "g" THEN _PUTIMAGE (0 - (32 * 32), 0), monofont&
IF A$ = "h" THEN _PUTIMAGE (0 - (32 * 33), 0), monofont&
IF A$ = "i" THEN _PUTIMAGE (0 - (32 * 34), 0), monofont&
IF A$ = "j" THEN _PUTIMAGE (0 - (32 * 35), 0), monofont&
IF A$ = "k" THEN _PUTIMAGE (0 - (32 * 36), 0), monofont&
IF A$ = "l" THEN _PUTIMAGE (0 - (32 * 37), 0), monofont&
IF A$ = "m" THEN _PUTIMAGE (0 - (32 * 38), 0), monofont&
IF A$ = "n" THEN _PUTIMAGE (0 - (32 * 39), 0), monofont&
IF A$ = "o" THEN _PUTIMAGE (0 - (32 * 40), 0), monofont&
IF A$ = "p" THEN _PUTIMAGE (0 - (32 * 41), 0), monofont&
IF A$ = "q" THEN _PUTIMAGE (0 - (32 * 42), 0), monofont&
IF A$ = "r" THEN _PUTIMAGE (0 - (32 * 43), 0), monofont&
IF A$ = "s" THEN _PUTIMAGE (0 - (32 * 44), 0), monofont&
IF A$ = "t" THEN _PUTIMAGE (0 - (32 * 45), 0), monofont&
IF A$ = "u" THEN _PUTIMAGE (0 - (32 * 46), 0), monofont&
IF A$ = "v" THEN _PUTIMAGE (0 - (32 * 47), 0), monofont&
IF A$ = "w" THEN _PUTIMAGE (0 - (32 * 48), 0), monofont&
IF A$ = "x" THEN _PUTIMAGE (0 - (32 * 49), 0), monofont&
IF A$ = "y" THEN _PUTIMAGE (0 - (32 * 50), 0), monofont&
IF A$ = "z" THEN _PUTIMAGE (0 - (32 * 51), 0), monofont&
IF A$ = "0" THEN _PUTIMAGE (0 - (32 * 52), 0), monofont&
IF A$ = "1" THEN _PUTIMAGE (0 - (32 * 53), 0), monofont&
IF A$ = "2" THEN _PUTIMAGE (0 - (32 * 54), 0), monofont&
IF A$ = "3" THEN _PUTIMAGE (0 - (32 * 55), 0), monofont&
IF A$ = "4" THEN _PUTIMAGE (0 - (32 * 56), 0), monofont&
IF A$ = "5" THEN _PUTIMAGE (0 - (32 * 57), 0), monofont&
IF A$ = "6" THEN _PUTIMAGE (0 - (32 * 58), 0), monofont&
IF A$ = "7" THEN _PUTIMAGE (0 - (32 * 59), 0), monofont&
IF A$ = "8" THEN _PUTIMAGE (0 - (32 * 60), 0), monofont&
IF A$ = "9" THEN _PUTIMAGE (0 - (32 * 61), 0), monofont&
IF A$ = "+" THEN _PUTIMAGE (0 - (32 * 62), 0), monofont&
IF A$ = "-" THEN _PUTIMAGE (0 - (32 * 63), 0), monofont&
IF A$ = "=" THEN _PUTIMAGE (0 - (32 * 64), 0), monofont&
IF A$ = ":" THEN _PUTIMAGE (0 - (32 * 65), 0), monofont&
IF A$ = "." THEN _PUTIMAGE (0 - (32 * 66), 0), monofont&
IF A$ = "," THEN _PUTIMAGE (0 - (32 * 67), 0), monofont&
IF A$ = " " THEN _PUTIMAGE (0 - (32 * 68), 0), monofont&
IF A$ = "<" THEN _PUTIMAGE (0 - (32 * 69), 0), monofont&
IF A$ = ">" THEN _PUTIMAGE (0 - (32 * 70), 0), monofont&
IF A$ = "/" THEN _PUTIMAGE (0 - (32 * 71), 0), monofont&
IF A$ = "?" THEN _PUTIMAGE (0 - (32 * 72), 0), monofont&
IF A$ = ";" THEN _PUTIMAGE (0 - (32 * 73), 0), monofont&
IF A$ = "'" THEN _PUTIMAGE (0 - (32 * 74), 0), monofont&
IF A$ = "[" THEN _PUTIMAGE (0 - (32 * 75), 0), monofont&
IF A$ = "]" THEN _PUTIMAGE (0 - (32 * 76), 0), monofont&
IF A$ = "{" THEN _PUTIMAGE (0 - (32 * 77), 0), monofont&
IF A$ = "}" THEN _PUTIMAGE (0 - (32 * 78), 0), monofont&
IF A$ = "\" THEN _PUTIMAGE (0 - (32 * 79), 0), monofont&
IF A$ = "|" THEN _PUTIMAGE (0 - (32 * 80), 0), monofont&
IF A$ = "_" THEN _PUTIMAGE (0 - (32 * 81), 0), monofont&
IF A$ = "`" THEN _PUTIMAGE (0 - (32 * 82), 0), monofont&
IF A$ = "~" THEN _PUTIMAGE (0 - (32 * 83), 0), monofont&
IF A$ = "!" THEN _PUTIMAGE (0 - (32 * 84), 0), monofont&
IF A$ = "@" THEN _PUTIMAGE (0 - (32 * 85), 0), monofont&
IF A$ = "#" THEN _PUTIMAGE (0 - (32 * 86), 0), monofont&
IF A$ = "$" THEN _PUTIMAGE (0 - (32 * 87), 0), monofont&
IF A$ = "%" THEN _PUTIMAGE (0 - (32 * 88), 0), monofont&
IF A$ = "^" THEN _PUTIMAGE (0 - (32 * 89), 0), monofont&
IF A$ = "&" THEN _PUTIMAGE (0 - (32 * 90), 0), monofont&
IF A$ = "*" THEN _PUTIMAGE (0 - (32 * 91), 0), monofont&
IF A$ = "(" THEN _PUTIMAGE (0 - (32 * 92), 0), monofont&
IF A$ = ")" THEN _PUTIMAGE (0 - (32 * 93), 0), monofont&
IF A$ = CHR$(34) THEN _PUTIMAGE (0 - (32 * 94), 0), monofont&
_DEST origdest
_PUTIMAGE (x + (i * xw), y)-(x + (i * xw) + INT(size / 2), y + size), tmp&
_FREEIMAGE tmp&
NEXT
_FREEIMAGE monofont&
END SUB
Posts: 660
Threads: 142
Joined: Apr 2022
Reputation:
58
Just reading the code and wondering why you never free fontsheet& , is that because you passed it to _Memimage ?
Posts: 730
Threads: 120
Joined: Apr 2022
Reputation:
106
(06-01-2022, 07:22 PM)James D Jarvis Wrote: Just reading the code and wondering why you never free fontsheet& , is that because you passed it to _Memimage ?
No, to increase speed when calling the SUB more than once. I decided it better to make fontsheet& only once and just leave it open for the whole program run, so the image doesn't have to be decoded/created every time the SUB is called. I plan to use this for things that need fast drawing. In my testing this increased speed over 10x. I could call the SUB 1500 times in one second this way, but only 135 times a second when freeing the image and having to make it over every time. I usually don't like to leave images hanging open, but in this case thought it worth it for the speed gain.
- Dav
Posts: 660
Threads: 142
Joined: Apr 2022
Reputation:
58
(06-01-2022, 10:36 PM)Dav Wrote: (06-01-2022, 07:22 PM)James D Jarvis Wrote: Just reading the code and wondering why you never free fontsheet& , is that because you passed it to _Memimage ?
No, to increase speed when calling the SUB more than once. I decided it better to make fontsheet& only once and just leave it open for the whole program run, so the image doesn't have to be decoded/created every time the SUB is called. I plan to use this for things that need fast drawing. In my testing this increased speed over 10x. I could call the SUB 1500 times in one second this way, but only 135 times a second when freeing the image and having to make it over every time. I usually don't like to leave images hanging open, but in this case thought it worth it for the speed gain.
- Dav
Is there something gained by doing this in the sub and keeping track of the memory location as opposed to doing it outside the sub but with a shared handle created before calling the sub? (sorry about the questions, just getting into really paying attention to memory usage as a feature to speed execution as opposed to just being able to hold onto data and make use of it).
Posts: 730
Threads: 120
Joined: Apr 2022
Reputation:
106
06-02-2022, 12:50 AM
(This post was last modified: 06-02-2022, 01:13 AM by Dav.)
Probably not. I'm not really sure which is best to be honest. I guess the only gain of doing it this way (and something I was interested in) is having a totally portable SUB that's easily pasted to the end of other programs, without having to stick stuff in the main code area too. I think I will do a test to see if there's a speed increase with sharing it outside the sub.
(EDIT: Speed wise there doesn't seem to be a difference between DIM SHARED handle and all SUB method)
- Dav
Posts: 730
Threads: 120
Joined: Apr 2022
Reputation:
106
06-03-2022, 12:59 AM
(This post was last modified: 07-15-2023, 02:05 AM by Dav.)
New version 1.6 below. I added James Jarvis suggestions. Press D to pick a draw color, and press E for eraser. You can now load any image file QB64 supports by pressing L, and you can pick a filename when saving a BMP image, so you're not limited to just one now. Gave it an updated menu with the new options, and current colors are shown.
- Dav
EDIT: Fixed a typo. Now pressing F works.
Code: (Select All) '============
'QuadDraw.bas v1.6
'============
'An odd little drawing program.
'Draws/paints in several areas of the screen at same time.
'Coded by Dav for QB64 JUN/2022
'NEW FOR v1.6:
' New menu to show the new options available.
' PRESS D to choose a draw color
' PRESS E toggles Eraser On/Off (Hold & draw for neat effect)
' PRESS L to Load a previously saved image file.
' Can load any image file format that QB64 supports.
' The current Draw & Fill colors now shown in menu.
' Can now choose the filename when saving .BMP file.
'CREDITS: SPAINT SUB was made by Petr. Thanks Petr!
' text SUB was made by bplus. thanks bplus!
' (bplus helped me out how to draw lines without gaps too)
' Thanks to James Jarvis for draw color and eraser idea/code!
'----------
'HOW TO USE:
'----------
'Left click on mouse and hold to draw on the screen.
'Press 1,2,3 or 4 to set how many areas to draw in, default is 4.
'Use the +/- keys to change brush size (1 to 50 allowed)
'Right click to fill/paint the areas with color.
'Default fill color is picked randomly, but you can select one.
'Press D to select a new draw color for brush.
'Press F to select a fill color (doing so turns random fill color off)
'Press R to toggle random fill color on/off (default is a random color)
'Press E to toggle Erase on/off. Hold it while drawing for dotted lines.
'Press A to smooth the screen using AntiAliasing.
'Press S to save current image as QUADDRAW.BMP in current dir.
'Press L to Load a previously saved image on the screen.
'Press U to undo last change made to image.
'Space = clears screen and starts over.
'ESC = Ends program
'================================================================
DIM SHARED quads, brushsize, randfill, eraser, menu&, blk&, fill&
menu& = BASIMAGE1&
SCREEN _NEWIMAGE(1000, 600, 32) '_DESKTOPWIDTH * .75, _DESKTOPHEIGHT * .85, 32)
centerx = (_WIDTH - 200) / 2
centery = _HEIGHT / 2
wht& = _RGB(255, 255, 255) 'used often, so variable it
blk& = _RGB(0, 0, 0)
fill& = _RGB(RND * 255, RND * 255, RND * 255)
brushsize = 3 'size of drawing circle (brush)
quads = 4 'start with 4 drawing sections
randfill = 1 'default is use random fill color turned on
CLS , wht& 'start with white screen
_DELAY .25
undo& = _COPYIMAGE(_DISPLAY)
'====
main:
'====
_TITLE "QuadDraw - Quads:" + STR$(quads) + " BrushSize:" + STR$(brushsize)
DrawMenu
DO
WHILE _MOUSEINPUT: WEND
mx = _MOUSEX: my = _MOUSEY
IF mx <= (_WIDTH - 200 - brushsize / 2) THEN
IF _MOUSEBUTTON(1) THEN
IF stilldown = 0 THEN
_FREEIMAGE undo&
undo& = _COPYIMAGE(_DISPLAY)
END IF
IF stilldown = 1 THEN
stepx = lastmx - mx
stepy = lastmy - my
length = INT((stepx ^ 2 + stepy ^ 2) ^ .5)
dx = stepx / length
dy = stepy / length
FOR i = 0 TO length
FOR d = 1 TO brushsize
newx = mx + dx * i: newy = my + dy * i
CIRCLE (newx, newy), d, blk&
IF brushsize > 1 THEN PAINT (newx, newy), blk&, blk&
IF quads > 1 THEN
CIRCLE (centerx - newx + centerx, centery - newy + centery), d, blk&
IF brushsize > 1 THEN PAINT (centerx - newx + centerx, centery - newy + centery), blk&, blk&
END IF
IF quads > 2 THEN
CIRCLE (newx, centery - newy + centery), d, blk&
IF brushsize > 1 THEN PAINT (newx, centery - newy + centery), blk&, blk&
END IF
IF quads > 3 THEN
CIRCLE (centerx - newx + centerx, newy), d, blk&
IF brushsize > 1 THEN PAINT (centerx - newx + centerx, newy), blk&, blk&
END IF
NEXT
NEXT
ELSE
FOR d = 0 TO brushsize STEP .2
CIRCLE (mx, my), d, blk&
IF quads > 1 THEN
CIRCLE (centerx - mx + centerx, centery - my + centery), d, blk&
END IF
IF quads > 2 THEN
CIRCLE (mx, centery - my + centery), d, blk&
END IF
IF quads > 3 THEN
CIRCLE (centerx - mx + centerx, my), d, blk&
END IF
NEXT
END IF
lastmx = mx: lastmy = my
stilldown = 1
DrawMenu: _DISPLAY
ELSE
stilldown = 0
END IF
'if right click, fill sections with random color
IF _MOUSEBUTTON(2) THEN
_FREEIMAGE undo&
undo& = _COPYIMAGE(_DISPLAY)
IF randfill = 1 THEN
r = RND * 255: g = RND * 255: b = RND * 255
fill& = _RGB(r, g, b)
END IF
_DISPLAY
SPAINT mx, my, fill& ', blk&
IF quads > 1 THEN
SPAINT centerx - mx + centerx, centery - my + centery, fill& ', blk&
END IF
IF quads > 2 THEN
SPAINT mx, centery - my + centery, fill& ', blk&
END IF
IF quads > 3 THEN
SPAINT centerx - mx + centerx, my, fill& ', blk&
END IF
DrawMenu
_AUTODISPLAY
WHILE _MOUSEBUTTON(2) <> 0: N = _MOUSEINPUT: WEND
END IF
END IF
'get keyboard input
key$ = UCASE$(INKEY$)
IF key$ <> "" THEN
SELECT CASE key$
CASE CHR$(32): CLS , wht&: DrawMenu 'scpace clears screen again
CASE "1": quads = 1
CASE "2": quads = 2
CASE "3": quads = 3
CASE "4": quads = 4
CASE "+"
brushsize = brushsize + 1: IF brushsize > 50 THEN brushsize = 50
CASE "-"
brushsize = brushsize - 1: IF brushsize < 1 THEN brushsize = 1
CASE "U": _PUTIMAGE (0, 0), undo&
CASE "A": Smooth
CASE "S"
saveimg$ = IBOX$("NAME OF BMP TO SAVE-> ", 40, _RGB(255, 255, 255), _RGB(96, 96, 96), 0)
IF saveimg$ <> "" THEN
IF LCASE$(RIGHT$(saveimg$, 4)) <> ".bmp" THEN saveimg$ = saveimg$ + ".bmp"
SaveAsBMP saveimg$
a$ = IBOX$(UCASE$(saveimg$) + " SAVED!", 0, _RGB(255, 255, 255), _RGB(96, 96, 96), 2)
END IF
CASE "F"
new& = ColorPicker&(200, 150)
IF new& <> 0 THEN
randfill = 0
fill& = new&
END IF
CASE "D"
new& = ColorPicker&(200, 150)
IF new& <> 0 THEN
blk& = new&
ELSE
blk& = _RGB(0, 0, 0)
END IF
CASE "E"
SELECT CASE eraser
CASE IS = 1: eraser = 0
CASE IS = 0: eraser = 1
END SELECT
IF blk& = _RGB(0, 0, 0) THEN
blk& = wht&
ELSE
blk& = _RGB(0, 0, 0)
END IF
CASE "R"
DO UNTIL INKEY$ = "": LOOP
SELECT CASE randfill
CASE IS = 1: randfill = 0
CASE IS = 0: randfill = 1
END SELECT
CASE "L"
openimg$ = IBOX$("IMAGE TO LOAD-> ", 40, _RGB(255, 255, 255), _RGB(96, 96, 96), 0)
'if filename given
IF openimg$ <> "" THEN
'if file exists..
IF _FILEEXISTS(openimg$) THEN
'test loading image
o& = _LOADIMAGE(openimg$)
IF o& = -1 THEN
a$ = IBOX$(UCASE$(openimg$) + " NOT VALID!", 0, _RGB(255, 255, 255), _RGB(96, 96, 96), 2)
ELSE
_PUTIMAGE (0, 0)-(_WIDTH - 200, _HEIGHT), o&
_FREEIMAGE o&
END IF
ELSE
a$ = IBOX$(UCASE$(openimg$) + " NOT FOUND!", 0, _RGB(255, 255, 255), _RGB(96, 96, 96), 2)
END IF
END IF
CASE CHR$(27): END
END SELECT
DO UNTIL INKEY$ = "": LOOP
_DISPLAY
GOTO main
END IF
_AUTODISPLAY
LOOP
END
SUB SPAINT (x AS INTEGER, y AS INTEGER, clr~&) 'Color everything in the X, Y position regardless of the border color.
'SUB by Petr
DIM m AS _MEM, m2 AS _MEM
m = _MEMIMAGE(_DEST)
W = _WIDTH(_DEST)
H = _HEIGHT(_DEST)
P = _PIXELSIZE(_DEST)
SELECT CASE P
CASE 4 ' image is 32 bit image
Virtual = _NEWIMAGE(W, H, 32)
m2 = _MEMIMAGE(Virtual)
Back~& = POINT(x, y)
Back2~& = _RGB32(1, 1, 1)
Empty~& = _RGBA32(0, 0, 0, 0)
DO UNTIL a& = m.SIZE - 4
a& = a& + 4
IF _MEMGET(m, m.OFFSET + a&, _UNSIGNED LONG) = Back~& THEN _MEMPUT m2, m2.OFFSET + a&, Back~& ELSE _MEMPUT m2, m2.OFFSET + a&, Back2~&
LOOP
d = _DEST
_DEST Virtual
PAINT (x, y), clr~&, Back2~&
_DEST d
a& = 0
DO UNTIL a& = m.SIZE - 4
a& = a& + 4
IF _MEMGET(m2, m2.OFFSET + a&, _UNSIGNED LONG) <> clr~& THEN _MEMPUT m2, m2.OFFSET + a&, Empty~&
LOOP
_CLEARCOLOR Back2~&, Virtual
_PUTIMAGE (0, 0), Virtual
_MEMFREE m
_MEMFREE m2
_FREEIMAGE Virtual
CASE 1 ' image is 8 bit image (256 colors)
Virtual = _NEWIMAGE(W, H, 32)
m2 = _MEMIMAGE(Virtual)
Back~& = POINT(x, y)
Back2~& = _RGB(1, 1, 1)
Empty~& = _RGBA(0, 0, 0, 0)
DO UNTIL a& = m.SIZE - 1
a& = a& + 1
IF _MEMGET(m, m.OFFSET + a&, _UNSIGNED _BYTE) = Back~& THEN _MEMPUT m2, m2.OFFSET + a&, Back~& ELSE _MEMPUT m2, m2.OFFSET + a&, Back2~&
LOOP
d = _DEST
_DEST Virtual
PAINT (x, y), clr~&, Back2~&
_DEST d
a& = 0
DO UNTIL a& = m.SIZE - 1
a& = a& + 1
IF _MEMGET(m2, m2.OFFSET + a&, _UNSIGNED _BYTE) <> clr~& THEN _MEMPUT m2, m2.OFFSET + a&, Empty~&
LOOP
_CLEARCOLOR Back2~&, Virtual
_PUTIMAGE (0, 0), Virtual
_MEMFREE m
_MEMFREE m2
_FREEIMAGE Virtual
END SELECT
END SUB
SUB Text (x, y, textHeight, K AS _UNSIGNED LONG, txt$)
'Text SUB by bplus.
DIM fg AS _UNSIGNED LONG, cur&, I&, multi, xlen
fg = _DEFAULTCOLOR
cur& = _DEST
I& = _NEWIMAGE(8 * LEN(txt$), 16, 32)
_DEST I&
COLOR K, _RGBA32(0, 0, 0, 0)
_PRINTSTRING (0, 0), txt$
multi = textHeight / 16
xlen = LEN(txt$) * 8 * multi
_PUTIMAGE (x, y)-STEP(xlen, textHeight), I&, cur&
COLOR fg
_FREEIMAGE I&
END SUB
FUNCTION ColorPicker& (xpos, ypos)
'ColorPicker& Function by Dav, SEP/2020. FREE TO USE FOR ALL
'Function Returns color picked by user if one selected.
'If no color selected before Closing, function returns 0
'Click CLOSE to close the ColorPicker image.
'ESC key cancels selection and closes picker too.
'The xpos/ypos is x/y point on the screen to place colorpicker
'=== Save users display status
DisplayStatus% = _AUTODISPLAY
'=== copy background screen using _mem (thanks Steve!)
'=== Used this method because_COPYIMAGE(_DISPLAY) didnt always work
DIM scr1 AS _MEM, scr2 AS _MEM
scr1 = _MEMIMAGE(0): scr2 = _MEMNEW(scr1.SIZE)
_MEMCOPY scr1, scr1.OFFSET, scr1.SIZE TO scr2, scr2.OFFSET
'Create Colorpicker image
v& = _NEWIMAGE(463, 239, 32)
DIM m AS _MEM: m = _MEMIMAGE(v&)
A$ = "" '...COLORPICKER.PNG encoded by BASIMAGE...
A$ = A$ + "haIkMo7KDGOh77_oaBfFFfOhBL9c5gGWaX9BRK62K46AkHnS9I=`09EP<4V="
A$ = A$ + "e25F]0eB;]jK;#YFXUEJQJGM573`644fjGM:62H66L42I^89^HF<co`T]oHo"
A$ = A$ + "anW]TUUk;O2BnLONnmjek3L7m>li;cS4;]LohSGjC_[gM=C6WciL>WciL>Wc"
A$ = A$ + "iL>WciL>WciL>WciLOFMgBE9=CX6XN80S0C0W7n48C2O2LNH2H480e3e0c4^"
A$ = A$ + "5XZHUa7hn4hl`4`8#0Z7Z1V9L;#boQOFngVWjlLWGjhUNN]SGkiAW:SK^U[]"
A$ = A$ + "lUDW:cUmbnoNZbCf>]MJkdfYVnIk\bR]CKWf>o\CkdEn=KWEVBc:SC0I:[oV"
A$ = A$ + "IUa7h\MJkd=m>KWEVBc:SC0I:[oVIUa7h\MJkd=m>KWEVBc:SC0I:[oVIUa7"
A$ = A$ + "h\MJkd=m>KWEVBc:SC0I:[oVIUa7h\MJkd=m>KWEVBc^e?go9QI1;0NB80_0"
A$ = A$ + "LLhL`73oW4nHhL`aQG02`C2;0V5L[`W;f]2c2F0lT#0N1hh`iP?6n?anHhL`"
A$ = A$ + "aQG02`C2;0V5L[`W;QK5V5\0h9Q0l2`aQc1O<lORma`iPS3_04PW4F0<;hFQ"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?_\MJkdfY]CKW"
A$ = A$ + "f>]MJkdfY]CKWf>]M>IWff>]MJk<i\MJkdfY]cYjdffY]CKW9W]cdf>cjOgf"
A$ = A$ + "Y]CKWf>]MJkdfY]CKWf>caY]]CKWf>C^>flFCXcY`c01hiP^V2K1fJ2K1jJ:"
A$ = A$ + "lL#0N6XcY#7`Vc\e>nDMVeonEnhliIP0lL#GCQ]0K=fFP^V2?74PW1jL:d1\"
A$ = A$ + "i4j0jL:l<#0N>X[Y`FP]6K;#GCQW32`c0M>5j0fL\L=KWf>]MJkdfY]CKWf>"
A$ = A$ + "SV]CKWf>]MJkdfY]CKWGnlbfY]c?3g>_R>f\]CKWf>]MJkdfY]CKWf>]MVcC"
A$ = A$ + "KKWf>]MVLf>]MJkdfiDMJKkdfY]cTcf9KUiX?>E]c9kcIkdfI9^MNmjkSHkd"
A$ = A$ + "fY]cTcfY]CKWEV]CWciL>WciL>WciL>WciL>WciL>W;OkoC[%%L2"
btemp$ = "" 'decode string data to image data
FOR i& = 1 TO LEN(A$) STEP 4: B$ = MID$(A$, i&, 4)
IF INSTR(1, B$, "%") THEN
FOR C% = 1 TO LEN(B$): F$ = MID$(B$, C%, 1)
IF F$ <> "%" THEN C$ = C$ + F$
NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$)
IF MID$(B$, j, 1) = "#" THEN
MID$(B$, j) = "@": END IF: NEXT
FOR t% = LEN(B$) TO 1 STEP -1
B& = B& * 64 + ASC(MID$(B$, t%)) - 48
NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1
X$ = X$ + CHR$(B& AND 255): B& = B& \ 256
NEXT: btemp$ = btemp$ + X$: NEXT
btemp$ = _INFLATE$(btemp$, m.SIZE)
_MEMPUT m, m.OFFSET, btemp$: _MEMFREE m
'Put colorpicker image on screen at xpos/ypos
_PUTIMAGE (xpos, ypos), v&: _DISPLAY: _FREEIMAGE v&
'====================================
'=== Now get users color selection...
'=== no selection made yet
selected = 0
'=== main loop
DO
'=== Get mouse input
WHILE _MOUSEINPUT
'=== Get mouse x/y
mx = _MOUSEX: my = _MOUSEY
'=== Only poll this area
IF mx < (xpos + 473) AND my < (ypos + 243) THEN
'=== if click button in area
IF _MOUSEBUTTON(1) THEN
'=== if clicked in CLOSE box area
IF mx > (xpos + 352) AND mx < (xpos + 457) AND my > (ypos + 5) AND my < (ypos + 72) THEN
GOTO donepicking
END IF
'=== made a color selection
selected = 1
'=== Get color where mouse pointer is
clr& = POINT(mx, my)
'=== Make Red Green Blue color values
red = _RED32(clr&): grn = _GREEN32(clr&): blu = _BLUE32(clr&)
'=== show color selected in box
LINE ((xpos + 246), (ypos + 7))-((xpos + 347), (ypos + 70)), _RGB(red, grn, blu), BF
'=== Update gradient strip with color...
'=== ...only if mouse not in gradient strip area
IF mx <= (xpos + 246) OR mx >= (xpos + 457) OR my <= (ypos + 77) OR my >= (ypos + 107) THEN
c = 0
FOR x = (xpos + 453) TO (xpos + 242) STEP -4
LINE (x, (ypos + 77))-(x + 4, (ypos + 107)), _RGB(red + c, grn + c, blu + c), BF
c = c + 4
NEXT
END IF
END IF
'=== update screen
_DISPLAY
END IF
WEND
'=== ESC key cancels picking and closes
IF INKEY$ = CHR$(27) THEN
selected = 0: GOTO donepicking
END IF
'=== don't be a cpu pig
_LIMIT 60
LOOP 'UNTIL INKEY$ <> ""
donepicking:
'=== wait for mouse button UP to continue
DO: mi = _MOUSEINPUT: LOOP UNTIL _MOUSEBUTTON(1) = 0
'=== if user selected color, say so
IF selected = 1 THEN
ColorPicker& = clr&
ELSE
ColorPicker& = 0
END IF
'====================================
'Restore background as it was
_MEMCOPY scr2, scr2.OFFSET, scr2.SIZE TO scr1, scr1.OFFSET
_MEMFREE scr1: _MEMFREE scr2
'Restore display status as it was
IF DisplayStatus% = -1 THEN _AUTODISPLAY
END FUNCTION
FUNCTION BASIMAGE1& 'quadmenu3.png
v& = _NEWIMAGE(185, 593, 32)
DIM m AS _MEM: m = _MEMIMAGE(v&)
A$ = ""
A$ = A$ +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ti1CBg>bj4\[NJ7i\:_I^El_[l=:XOj#OZhZEb5F7fL"
A$ = A$ + "IYZCCZk66kRSdW9\]o^gE?_Sm?KlnSSdOiA_7ZLOc6666666666666666666"
A$ = A$ + "666666666666666666666666666666666666666666666666666666666666"
A$ = A$ + "666666666666666666666666666666666666666666666666666666666666"
A$ = A$ + "666666666666666666666666666666666666666666666666666666666666"
A$ = A$ + "666666666666666666666666666666666666666666666666666666666666"
A$ = A$ + "666666666666666666666666666666666666666666666666666666666666"
A$ = A$ + "666666666666666666666666666666666666666666666666666666666666"
A$ = A$ + "666666666666666666666666666666666666666666666666666666666666"
A$ = A$ + "66_kh?ocolKomOogBlGoeOm]SVfh_iOGml8moaOl7okonOnWoio3aO7?CGi7"
A$ = A$ + "aGUWEeE^<Rb^C^EUA6MjU>iahiPX=\;4l0`1VTFT_AKK>0nR:mAn7ooZl4l\"
A$ = A$ + "ZWWOV:nMGIPgUDb]Z<bQ#^Zbk:iaheQSWKWWTfLoNLlof_mKOGnn;ob_lMLO"
A$ = A$ + ">4lWhIidQWW3AL1bec>>8T_Oogom_YTKEIT3Q\a?g:iahnhh:NC`?nYOjWng"
A$ = A$ + "me]:]An5YUKc3N0Wf8=o`?l3OGJoaOl7Ua5mg[NN>4a58G?iW;b?EL:i6b86"
A$ = A$ + "K37RjUZoO0UlHL_Ll:NSZOH>]8>>OgQSG5Gec[TeELl:iVO?6LLd?<[3RPjM"
A$ = A$ + "S8m#><7omQS?QSeaEVbaag2Rl0OWo:ihP360UADNac`O[Pih:IEE7P<7i;#F"
A$ = A$ + "Nbck]2iiKKL]Ll:^T:N>^XMYR[DU_:>8\G1hNZb_J\3:>^Jlh`V:inJkhhlk"
A$ = A$ + "]A0LI57_K<hOG692\]Z<^6>>cQbl\Ecm2SKOG>N4_R32KZ4?K0>?[2:>NUME"
A$ = A$ + "P]I#ID=NLeH^S#<>557WcO6IKGF1lmU#6^KNbk<VHCS9LLHk3`_fI\:An3kS"
A$ = A$ + "[2Ef>\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Q?O0aY:CPlhZbnEgLJQN:W7aoRh#j2K`TCWR"
A$ = A$ + "SSm7FGITemAl\ON1Y1n5GN=LRoFE6QlU?cn#7ZJcc?oSRGl<Agl8_bjBEITm"
A$ = A$ + "M8:O_B4GdnPg3DfaB5OW?E1YAMWNEY3Da[Z7\oFAY;hdX:3hoFhlWCc>n3V8"
A$ = A$ + "n#GZJ3Fml?:Nac0MngS[lNj\cVSid5]1ii_VUQZW];_WDVMbIWoMIR\LVbPS"
A$ = A$ + "KJM]CGQOSm5<kD>G9_``````````````````````````````````````````"
A$ = A$ + "````8So7XoSA%%%0"
btemp$ = ""
FOR i& = 1 TO LEN(A$) STEP 4: B$ = MID$(A$, i&, 4)
IF INSTR(1, B$, "%") THEN
FOR C% = 1 TO LEN(B$): F$ = MID$(B$, C%, 1)
IF F$ <> "%" THEN C$ = C$ + F$
NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$)
IF MID$(B$, j, 1) = "#" THEN
MID$(B$, j) = "@": END IF: NEXT
FOR t% = LEN(B$) TO 1 STEP -1
B& = B& * 64 + ASC(MID$(B$, t%)) - 48
NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1
X$ = X$ + CHR$(B& AND 255): B& = B& \ 256
NEXT: btemp$ = btemp$ + X$: NEXT
btemp$ = _INFLATE$(btemp$, m.SIZE)
_MEMPUT m, m.OFFSET, btemp$: _MEMFREE m
BASIMAGE1& = _COPYIMAGE(v&): _FREEIMAGE v&
END FUNCTION
SUB SaveAsBMP (filename AS STRING)
'This SUB adapted from SAVEIMAGE SUB from the QB64 wiki
image& = _NEWIMAGE(_WIDTH - 200, _HEIGHT, 32)
_PUTIMAGE (0, 0), _DISPLAY, image&
bytesperpixel& = _PIXELSIZE(image&)
'IF bytesperpixel& = 0 THEN PRINT "Text modes unsupported!": END
IF bytesperpixel& = 1 THEN bpp& = 8 ELSE bpp& = 24
x& = _WIDTH(image&)
y& = _HEIGHT(image&)
b$ = "BM????QB64????" + MKL$(40) + MKL$(x&) + MKL$(y&) + MKI$(1) + MKI$(bpp&) + MKL$(0) + "????" + STRING$(16, 0) 'partial BMP header info(???? to be filled later)
IF bytesperpixel& = 1 THEN
FOR c& = 0 TO 255 ' read BGR color settings from JPG image + 1 byte spacer(CHR$(0))
cv& = _PALETTECOLOR(c&, image&) ' color attribute to read.
b$ = b$ + CHR$(_BLUE32(cv&)) + CHR$(_GREEN32(cv&)) + CHR$(_RED32(cv&)) + CHR$(0) 'spacer byte
NEXT
END IF
MID$(b$, 11, 4) = MKL$(LEN(b$)) ' image pixel data offset(BMP header)
lastsource& = _SOURCE
_SOURCE image&
IF ((x& * 3) MOD 4) THEN padder$ = STRING$(4 - ((x& * 3) MOD 4), 0)
FOR py& = y& - 1 TO 0 STEP -1 ' read JPG image pixel color data
r$ = ""
FOR px& = 0 TO x& - 1
c& = POINT(px&, py&) 'POINT 32 bit values are large LONG values
IF bytesperpixel& = 1 THEN r$ = r$ + CHR$(c&) ELSE r$ = r$ + LEFT$(MKL$(c&), 3)
NEXT px&
d$ = d$ + r$ + padder$
NEXT py&
_SOURCE lastsource&
MID$(b$, 35, 4) = MKL$(LEN(d$)) ' image size(BMP header)
b$ = b$ + d$ ' total file data bytes to create file
MID$(b$, 3, 4) = MKL$(LEN(b$)) ' size of data file(BMP header)
IF LCASE$(RIGHT$(filename$, 4)) <> ".bmp" THEN ext$ = ".bmp"
f& = FREEFILE
OPEN filename$ + ext$ FOR OUTPUT AS #f&: CLOSE #f& ' erases an existing file
OPEN filename$ + ext$ FOR BINARY AS #f&
PUT #f&, , b$
CLOSE #f&
_FREEIMAGE image&
END SUB
SUB Smooth
FOR x = 0 TO _WIDTH - 201
FOR y = 0 TO _HEIGHT - 1
p1~& = POINT(x, y)
p2~& = POINT(x + 1, y)
p3~& = POINT(x, y + 1)
p4~& = POINT(x + 1, y + 1)
p5~& = POINT(x - 1, y)
p6~& = POINT(x, y - 1)
p7~& = POINT(x - 1, y - 1)
p8~& = POINT(x - 1, y + 1)
p9~& = POINT(x + 1, y - 1)
r = _RED32(p1~&) + _RED32(p2~&) + _RED32(p3~&) + _RED32(p4~&) + _RED32(p5~&) + _RED32(p6~&) + _RED32(p7~&) + _RED32(p8~&) + _RED32(p9~&)
g = _GREEN32(p1~&) + _GREEN32(p2~&) + _GREEN32(p3~&) + _GREEN32(p4~&) + _GREEN32(p5~&) + _GREEN32(p6~&) + _GREEN32(p7~&) + _GREEN32(p8~&) + _GREEN32(p9~&)
b = _BLUE32(p1~&) + _BLUE32(p2~&) + _BLUE32(p3~&) + _BLUE32(p4~&) + _BLUE32(p5~&) + _BLUE32(p6~&) + _BLUE32(p7~&) + _BLUE32(p8~&) + _BLUE32(p9~&)
PSET (x, y), _RGB(r / 9, g / 9, b / 9)
NEXT
NEXT
END SUB
SUB DrawMenu
LINE (_WIDTH - 200, 0)-(_WIDTH, _HEIGHT), _RGB(96, 96, 96), BF
LINE (_WIDTH - 200, 0)-(_WIDTH - 195, _HEIGHT), _RGB(164, 164, 164), BF
_PUTIMAGE (_WIDTH - 190, 10), menu&
IF quads = 1 THEN
LINE (_WIDTH - 178, 64)-(_WIDTH - 143, 110), _RGBA(255, 255, 0, 100), BF
LINE (_WIDTH - 178, 64)-(_WIDTH - 143, 110), _RGB(255, 255, 0), B
END IF
IF quads = 2 THEN
LINE (_WIDTH - 142, 64)-(_WIDTH - 102, 110), _RGBA(255, 255, 0, 100), BF
LINE (_WIDTH - 142, 64)-(_WIDTH - 102, 110), _RGB(255, 255, 0), B
END IF
IF quads = 3 THEN
LINE (_WIDTH - 97, 64)-(_WIDTH - 58, 110), _RGBA(255, 255, 0, 100), BF
LINE (_WIDTH - 97, 64)-(_WIDTH - 58, 110), _RGB(255, 255, 0), B
END IF
IF quads = 4 THEN
LINE (_WIDTH - 56, 64)-(_WIDTH - 18, 110), _RGBA(255, 255, 0, 100), BF
LINE (_WIDTH - 56, 64)-(_WIDTH - 18, 110), _RGB(255, 255, 0), B
END IF
Text _WIDTH - 55, 319, 22, _RGB(0, 0, 0), STR$(brushsize)
Text _WIDTH - 57, 317, 22, _RGB(255, 255, 0), STR$(brushsize)
LINE (_WIDTH - 160, 180)-(_WIDTH - 40, 300), _RGB(164, 164, 164), BF
LINE (_WIDTH - 160, 180)-(_WIDTH - 40, 300), _RGB(255, 255, 255), B
CIRCLE (_WIDTH - 100, 240), brushsize, _RGB(0, 0, 0)
IF brushsize > 1 THEN PAINT (_WIDTH - 100, 240), _RGB(0, 0, 0)
LINE (_WIDTH - 35, 380)-(_WIDTH - 10, 397), blk&, BF
LINE (_WIDTH - 35, 405)-(_WIDTH - 10, 421), fill&, BF
IF randfill = 1 THEN ran$ = "ON" ELSE ran$ = "OFF"
Text _WIDTH - 36, 431, 22, _RGB(0, 0, 0), ran$
Text _WIDTH - 38, 429, 22, _RGB(255, 255, 0), ran$
IF eraser = 1 THEN er$ = "ON" ELSE er$ = "OFF"
Text _WIDTH - 76, 456, 22, _RGB(0, 0, 0), er$
Text _WIDTH - 78, 454, 22, _RGB(255, 255, 0), er$
END SUB
FUNCTION IBOX$ (txt$, limitnum, fg&, bg&, delay)
'This function either gets user input or shows info.
'If limitnum is 0, it just shows info (message box)
'text$: Your text to show
'limitnum: how many letters of input to get
'fg&: The Text color
'bg&: Background color of box
'delay: optional delay period for message box only
' (and If set at -1 then wait for a keypress)
'=== save original place of cursor
origy = CSRLIN: origx = POS(1)
'=== Save whole screen
DIM scr1 AS _MEM, scr2 AS _MEM
scr1 = _MEMIMAGE(0): scr2 = _MEMNEW(scr1.SIZE)
_MEMCOPY scr1, scr1.OFFSET, scr1.SIZE TO scr2, scr2.OFFSET
'=== find center x/y of screen
y = INT(_HEIGHT / _FONTHEIGHT / 2)
x = INT((_WIDTH - 200) / _FONTWIDTH / 2)
tl = LEN(txt$) + limitnum 'total length of letter spacing used
x = x - INT(tl / 2) 'recompute x based on text length
LINE (x * 8 - 24, y * 16 - 32)-((x * 8) + (tl * 8) + 8, y * 16 + 16), bg&, BF
LINE (x * 8 - 24, y * 16 - 32)-((x * 8) + (tl * 8) + 8, y * 16 + 16), fg&, B
COLOR fg&, bg&
LOCATE y, x: PRINT txt$;
y = CSRLIN: x = POS(1)
IF limitnum = 0 THEN
IF delay = -1 THEN
a$ = INPUT$(1)
ELSE
_DELAY delay
END IF
IBOX$ = ""
ELSE
entry$ = ""
DO
a$ = INPUT$(1)
'=== Return exits with data
IF a$ = CHR$(13) THEN IBOX$ = entry$: EXIT DO
'=== Handle the backspace
IF a$ = CHR$(27) THEN IBOX$ = "": EXIT DO
'=== ESC cancels
IF a$ = CHR$(8) THEN 'Backspace goes back a space
IF LEN(entry$) > 0 THEN
entry$ = MID$(entry$, 1, LEN(entry$) - 1)
END IF
ELSE
'add letter entered, if not over limitnum
IF LEN(entry$) < limitnum THEN
entry$ = entry$ + a$
END IF
END IF
LOCATE y, x: PRINT SPACE$(limitnum);
LOCATE y, x: PRINT entry$;
LOOP
END IF
'=== Restore the whole screen
_MEMCOPY scr2, scr2.OFFSET, scr2.SIZE TO scr1, scr1.OFFSET
_MEMFREE scr1: _MEMFREE scr2
'=== restore original y,x
LOCATE origy, origx
END FUNCTION
Posts: 3,997
Threads: 180
Joined: Apr 2022
Reputation:
222
Well the next obvious thing is to allow user to pick background color.
b = b + ...
|