Search found 40 matches

by matt7
Thu Aug 16, 2018 4:00 pm
Forum: BASIC programs
Topic: Gradient Editor
Replies: 33
Views: 1717

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: 1717

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: 1717

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: 268

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: 1717

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: 1717

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...
by matt7
Sat Aug 11, 2018 9:27 pm
Forum: BASIC programs
Topic: Gradient Editor
Replies: 33
Views: 1717

Re: Gradient Editor

rbytes, I didn't receive your PM, but I went ahead and implemented your idea for gradient.txt anyway because I realized it wasn't that much code to add and I can see where it would be useful to design a gradient and then get a complete, standalone script generated showing how to define and draw the ...
by matt7
Sat Aug 11, 2018 4:08 am
Forum: BASIC programs
Topic: Gradient Editor
Replies: 33
Views: 1717

Re: Gradient Editor

Yeah, PM me the code, I'd love to check it out! (I'm assuming all you did was add to the SAVE_GRADIENT_DATA function in GradientEditor.sb?) I've got no problem adding it to the version I have up on Dropbox if other people want that feature ASAP rather than waiting for me to implement the full-fledge...
by matt7
Thu Aug 09, 2018 10:34 pm
Forum: BASIC programs
Topic: Gradient Editor
Replies: 33
Views: 1717

Re: Gradient Editor

You can also make some interesting arcs inside angles if you make two opposite corners the same!
by matt7
Tue Aug 07, 2018 5:30 am
Forum: BASIC programs
Topic: Gradient Editor
Replies: 33
Views: 1717

Re: Gradient Editor

Good to hear it's working now for you straight from Dropbox with no editing of the include paths. I'll post something over in the Other topics forum tomorrow about it. Hopefully, Mr. Kibernetik can clear up the confusion about how the libraries and compiling work. (Also, thanks for the earlier compl...