Search found 1266 matches

by rbytes
Sun Feb 17, 2019 10:21 pm
Forum: BASIC programs
Topic: field examples
Replies: 3
Views: 12
Flag: Canada

Re: field examples

There are a couple of places to look for examples. Have you tried the Libraries folder in Basic Programs? Many of the posts are about one single command or function. We could also use the Basic Docs and Books section to post some examples.
by rbytes
Sun Feb 17, 2019 9:45 pm
Forum: BASIC programs
Topic: field examples
Replies: 3
Views: 12
Flag: Canada

Re: field examples

Here's one I whipped up just for you. N$="test" 'name of field GRAPHICS GRAPHICS CLEAR 1,1,1 DRAW COLOR 0,0,0 DRAW TEXT "What is your name?" at 200,120 DRAW TEXT "Press return when ready" at 200,160 FIELD N$ TEXT "" AT 200,200 SIZE 300,50 FIELD N$ SELECT 0 DO SLOWDOWN UNTIL FIELD_CHANGED (N$) DRAW T...
by rbytes
Sun Feb 17, 2019 8:14 pm
Forum: BASIC programs
Topic: List Editor
Replies: 2
Views: 20
Flag: Canada

Re: List Editor

You are welcome to experiment. I find that I can edit lists very efficiently the way the logic works now. You are correct about how the field is positioned. That is why I added the extra empty items at the end of the list. Otherwise it would take more calculation to predict where an item would jump ...
by rbytes
Sun Feb 17, 2019 5:48 pm
Forum: BASIC programs
Topic: List Editor
Replies: 2
Views: 20
Flag: Canada

List Editor

If you have used lists, you know that you can't really do anything with them other than choose one item from all the items they contain. For all other changes to a list, you must change the one-dimensional array used to create the list. I started to play around with the idea of a list that I could e...
by rbytes
Sun Feb 17, 2019 5:00 am
Forum: BASIC programs
Topic: Scrollable message logbook
Replies: 1
Views: 18
Flag: Canada

Re: Scrollable message logbook

An efficient way to keep notes. This may be my opportunity to finally win a game! :roll:
by rbytes
Fri Feb 15, 2019 8:02 pm
Forum: BASIC programs
Topic: Dot Matrix Clock
Replies: 12
Views: 122
Flag: Canada

Re: Dot Matrix Clock

Thanks, Mr. K. It may be a solution for non-serif fonts. I would be concerned that adding smoothing could have the effect of removing or blunting serifs on characters. It is no doubt easier to work with sans-serif fonts, although the one I show at the start of this topic is a serif font.
by rbytes
Fri Feb 15, 2019 6:48 pm
Forum: BASIC programs
Topic: Dot Matrix Clock
Replies: 12
Views: 122
Flag: Canada

Re: Dot Matrix Clock

I made a small addition to Henk's code to see if it could help fit the character better to the matrix. It allows you to position the input character left and right by a very small amount. Note in the two screen shots that at a certain slider setting I eliminated several sampling errors in the output...
by rbytes
Fri Feb 15, 2019 3:06 pm
Forum: BASIC programs
Topic: Dot Matrix Clock
Replies: 12
Views: 122
Flag: Canada

Re: Dot Matrix Clock

Nice code! I tried it on a couple of fonts. It produces good starting results, but would need further editing on the corners and the right side. See the screen shot. The reading accuracy could be improved with a larger matrix, but it would likely be more efficient just to edit the data once it is cr...
by rbytes
Thu Feb 14, 2019 2:28 pm
Forum: BASIC programs
Topic: Dot Matrix Clock
Replies: 12
Views: 122
Flag: Canada

Re: Dot Matrix Clock

Henk, I think you just described your next project! :lol:
by rbytes
Tue Feb 12, 2019 11:25 pm
Forum: BASIC programs
Topic: Dot Matrix Clock
Replies: 12
Views: 122
Flag: Canada

Dot Matrix Clock

Working with dot matrix characters is a great mental exercise. Especially when you start with photos of dot matrix patterns found on the web and have to translate them into data. They may have a cruder look than the vector fonts (eg. Arial) that we know and love, but they allow much more color and s...