Search found 40 matches

by matt7
Fri Apr 12, 2019 6:45 am
Forum: BASIC programs
Topic: Word Cloud
Replies: 7
Views: 996

Re: Word Cloud

Looks great! I like the color palette. It would be cool to have an algorithm before doing the render that takes a text file input (or just a string) and scans it for the word list (ignoring short common words like articles and prepositions) and also keep track of word frequency. Then the rendering c...
by matt7
Mon Mar 25, 2019 7:37 pm
Forum: For beginners
Topic: Help with BUTTONS, SWITCHES and SLIDERS, PLEASE.
Replies: 9
Views: 1207

Re: Help with BUTTONS, SWITCHES and SLIDERS, PLEASE.

It's also worth mentioning that any interface object you create is added to a "page." If no page is manually set up (like in my example above), then Smart Basic puts the interface object onto the default page (with name "") that has a transparent background and covers the entire screen. But if you s...
by matt7
Mon Mar 25, 2019 7:26 pm
Forum: For beginners
Topic: Help with BUTTONS, SWITCHES and SLIDERS, PLEASE.
Replies: 9
Views: 1207

Re: Help with BUTTONS, SWITCHES and SLIDERS, PLEASE.

Here's a quick example I threw together. The "Reset" button resets slider value back to 0.5. The switch toggles the "Reset" button between enabled/disabled (using a text field over top the button to dim the button and prevent it being pressed). The slider does nothing, but you could read out the val...
by matt7
Mon Mar 11, 2019 9:22 pm
Forum: BASIC programs
Topic: Ellipse, rotated about an angle
Replies: 4
Views: 592

Re: Ellipse, rotated about an angle

I always forget about the DRAW TO and DRAW LINE TO functions! Nice use of them. Because of the difference in screen resolutions, I did not get those thin gaps between line segments on my iPhone like in your screenshot. But if I make the DRAW SIZE larger then I do start to get some and part of the el...
by matt7
Thu Mar 07, 2019 9:12 pm
Forum: Libraries
Topic: Rounded Rectangles
Replies: 7
Views: 845

Re: Rounded Rectangles

I didn't see those earlier posts! After looking back at them, I suppose what my functions provide is the most minimalistic version possible. Any draw and fill settings (including color, alpha, dash, and shadow) must be set before calling one of the functions, just like normal DRAW and FILL commands....
by matt7
Wed Mar 06, 2019 7:29 pm
Forum: Libraries
Topic: Rounded Rectangles
Replies: 7
Views: 845

Rounded Rectangles

These are some simple functions for drawing rectangles with rounded corners. They are designed to match the built-in DRAW RECT and FILL RECT functions but have an additional parameter for the rectangle's corner radius. These functions work as you would expect with DRAW COLOR, DRAW ALPHA, DRAW SIZE, ...
by matt7
Mon Mar 04, 2019 6:22 pm
Forum: BASIC programs
Topic: "Quick & dirty" file selector
Replies: 7
Views: 731

Re: "Quick & dirty" file selector

Disregard my earlier question. I just realized that the reason you switched from drawing lines to using a button to create the window border was to prevent overwriting anything on the graphics layer. I only glanced at the code and didn't realize the graphics clear at the top is only for the demo cod...
by matt7
Mon Mar 04, 2019 6:08 pm
Forum: BASIC programs
Topic: "Quick & dirty" file selector
Replies: 7
Views: 731

Re: "Quick & dirty" file selector

Thanks, Henko. This is helpful. I'm wondering why you need to do a graphics clear though? Why not create a fullscreen page (maybe solid white or black, and maybe with a transparency of 50% or something) and then create the list and buttons for selecting a file on that new page? Then when "Ok" is pre...
by matt7
Sun Feb 17, 2019 7:29 pm
Forum: BASIC programs
Topic: List Editor
Replies: 2
Views: 309

Re: List Editor

Very cool! I have thought about something like this before, though I wasn't sure how to solve the problem of a list that is scrollable (all items are not visible at the same time due to the number of items, font size, and height of the list). I like your idea of using LIST N$ SELECT K to either (a) ...
by matt7
Fri Feb 01, 2019 6:07 pm
Forum: Libraries
Topic: Sleep Function
Replies: 10
Views: 513

Re: Sleep Function

Definitely seems inconsistent in one sense, but it is consistent in another sense. The inability to get touch coordinates when in TEXT mode is consistent with editable text boxes that appear when in GRAPHICS mode. (I think touches still work over read-only text boxes.) I think that is because priori...