Search found 33 matches

by matt7
Thu Jan 31, 2019 9:52 pm
Forum: Libraries
Topic: Sleep Function
Replies: 10
Views: 1677

Re: Sleep Function

For accuracy and to lessen the load on the CPU, why not ditch the PAUSEs altogether? /* These sleep functions are replacements for the PAUSE function. The PAUSE function does not relieve CPU load during the duration of the PAUSE, whereas these functions use SLOWDOWN until the specified duration has ...
by matt7
Sun Sep 02, 2018 11:16 pm
Forum: BASIC programs
Topic: Programming Problem
Replies: 1
Views: 446

Re: Programming Problem

You cannot use the "smart quotes" ( “ ” ‘ ’ ) that have a direction to them. You must use straight quotes ( " and ' ). Press and hold the quotation mark key or apostrophe key on your iOS keyboard to get straight quotes. Or turn them off in Settings > General > Keyboards > Smart Punctuation. For more...
by matt7
Sun Aug 26, 2018 6:18 pm
Forum: Libraries
Topic: MSGBOX Library (clone of VBA's MsgBox function)
Replies: 7
Views: 1857

Re: MSGBOX Library (clone of VBA's MsgBox function)

Thanks! Glad everything works well for you. I try and simulate iPad screen ratios on my iPhone during testing, but of course, that isn't the same as having an actual iPad to test on. You may find you want to tweak some of the default parameter values or even the hardcoded sizing values I have in the...
by matt7
Sat Aug 25, 2018 1:11 am
Forum: Libraries
Topic: MSGBOX Library (clone of VBA's MsgBox function)
Replies: 7
Views: 1857

MSGBOX Library (clone of VBA's MsgBox function)

Overview This library is a built-from-scratch reproduction of VBA's MsgBox function, which is used for displaying messages/prompts to users in Microsoft Office. (See an overview of the VBA version here .) MSGBOX lets you quickly and easily display a windowed message and 1 to 3 buttons for solicitin...
by matt7
Thu Aug 16, 2018 4:00 pm
Forum: BASIC programs
Topic: Gradient Editor
Replies: 33
Views: 3180

Re: Gradient Editor

Very nice, rbytes. Good idea sticking some optional save and export functionality into the gradient.txt script.

I updated the OP to mention that you shared a version with some added features, and linked to your post.
by matt7
Tue Aug 14, 2018 5:44 pm
Forum: BASIC programs
Topic: Gradient Editor
Replies: 33
Views: 3180

Re: Gradient Editor

Sorry if it came off like I didn't want you changing anything. I've got no problem if you want to add features and change things for your own personal use, and you're welcome to share your modified code here on the forum! I just wasn't planning on updating the OP or my Dropbox version with those mod...
by matt7
Tue Aug 14, 2018 4:48 pm
Forum: BASIC programs
Topic: Gradient Editor
Replies: 33
Views: 3180

Re: Gradient Editor

Yes, I have thought about how to add scrubbing to the gradient stops, similar to the RGBA sliders. Moving the touch vertically to the bottom of the screen is already reserved for removing the gradient stop. I could do something like if the user touches and holds the preview color/alpha box (the box ...
by matt7
Tue Aug 14, 2018 4:41 pm
Forum: Libraries
Topic: Save/Restore the GRAPHICS MODE
Replies: 1
Views: 805

Save/Restore the GRAPHICS MODE

Functions provided: GET_GRAPHICS_MODE$ () detects the current graphics mode and returns it as a string (e.g. "NORMAL", "MULTIPLY", "SCREEN", etc.). SET_GRAPHICS_MODE (gm$) sets the graphics mode based on the input string. SAVE_GRAPHICS_MODE () calls GET_GRAPHICS_MODE$ and stores the returned mode s...
by matt7
Sat Aug 11, 2018 11:04 pm
Forum: BASIC programs
Topic: Gradient Editor
Replies: 33
Views: 3180

Re: Gradient Editor

Good catch on the quadrilateral direction error. I forgot a line of code that saved the shape's dir$ string in gradient.txt, so it was defaulting to the other since I used an ELSE in the library. I added that missing line of code to fix that, and while I was at it I increased the max gradient stop p...
by matt7
Sat Aug 11, 2018 10:56 pm
Forum: BASIC programs
Topic: Gradient Editor
Replies: 33
Views: 3180

Re: Gradient Editor

Yeah, there are parameters that set the maximum number of gradient stops. The reason is that I wanted to generate all the gradient stop sprites during initialization since that was easier than trying to create and delete sprites on the fly and manage their IDs/names. I limited both color and alpha s...