Search found 56 matches

by bplus
Jul 17, 2017 17:39
Forum: Sources, Examples, Tips and Tricks
Topic: Particle Repulsion Grid with sound and simple scroller [Windows only]
Replies: 2
Views: 1270

Re: Particles Mouse Attraction with sound and simple scroller [Windows only]

Hey, is that Salvador Dali? It would be just like him to show up for this!
by bplus
Jul 16, 2017 22:47
Forum: Sources, Examples, Tips and Tricks
Topic: randomly generated graphics demo
Replies: 5
Views: 1817

Re: randomly generated graphics demo

Yes the problem are ULONG (32-bit color) vs INTEGER 32/64-bit here are the 64-bit version. [q]=quit Joshy dim shared as ulong framebuf(0 to 479,0 to 639) dim as ulong ptr scrp,framep dim as ulong c dim as integer x,y,z,zz,h,v,x2,y2,f1,f2,f3 dim as integer x3,y3,xt,yt dim as integer xx,xy,yx,yy,xx2,...
by bplus
Jul 16, 2017 22:42
Forum: Sources, Examples, Tips and Tricks
Topic: randomly generated graphics demo
Replies: 5
Views: 1817

Re: randomly generated graphics demo

I came up with this algorithm a while back when I was thinking about possibilities for the 4KB demo category. Of course, FB executable itself is much too big. I could have made it a Sega Saturn or DOS program... but I never did. Most of the parameters are randomly chosen but some are tunable by han...
by bplus
Jul 06, 2017 9:46
Forum: General
Topic: To Independence Day!
Replies: 23
Views: 2476

Re: To Independence Day!

Hi dafhi, I ran both our codes side by side to compare optical effects, I got a severe pain at the base of my optical nerve behind my right eye. This was noticed after I awoke from a seizures induced coma. One should not do this first thing in the morning. Yours seems to be running faster and pickin...
by bplus
Jul 05, 2017 15:31
Forum: Sources, Examples, Tips and Tricks
Topic: Browser filter
Replies: 5
Views: 1596

Re: Browser filter

A workaround is to use the "Reply with quote" button and copy the contents from the editing textbox there. This usually preserves the original formatting. e.g. consider this code with Tabs: <tabs If you'd copy it directly you will get spaces, but if you click "Reply with quote" ...
by bplus
Jul 04, 2017 21:51
Forum: Beginners
Topic: EVAL
Replies: 37
Views: 7142

Re: EVAL

[off topic] "sensless contests" I would not ever take part in such a contest (it's a "cheat", from the beginning, to the end). It won the contest. :) (barely) Congrats (...) If I was the judge of the contest, you (all, I suppose) where "disqualified", for using far mor...
by bplus
Jul 04, 2017 21:22
Forum: Beginners
Topic: EVAL
Replies: 37
Views: 7142

Re: EVAL

Ah, it was a bone head mistake I was making! Now EVAL 2 bplus.bas has and, or and not working: ' EVAL 2 bplus.bas for FB (B+=MGA) 2017-07-04 'based on successful: evalW 2.txt for JB [B+=MGA] 2017-03-11 repost with edits ' EVAL 1 - Just Basic Eval code translated and = > < >= <= <> binary's added 'EV...
by bplus
Jul 04, 2017 19:49
Forum: Beginners
Topic: EVAL
Replies: 37
Views: 7142

Re: EVAL

Hi bplus, it'll be far simpler (than to be continuously guessing), if you'd post the code of the EVAL you currently have (whatever source), to assess what's really needed (decisions on return type etc.). String/Number to Boolean = CBool(str) --> but very limited to: "1" or "-1" ...
by bplus
Jul 04, 2017 17:56
Forum: Beginners
Topic: EVAL
Replies: 37
Views: 7142

Re: EVAL

Hi MrSwiss and all, I am not sure what I need bit wise. My goal with EVAL is to be able to use it for a stand alone tiny little interpreter. I want to translate my 100 liner to a stand alone that works without it's bigger brother. So I need to make decisions at an IF line. I thought 1's (or -1's?) a...
by bplus
Jul 04, 2017 17:32
Forum: Sources, Examples, Tips and Tricks
Topic: Browser filter
Replies: 5
Views: 1596

Re: Browser filter

Hi, Yes, this was just a quick fix solution for those using browsers that apparently modify what you are copying (Yikes!). I am such an Interpreter head, I did not anticipate all the fine details that might be added for a stand alone app eg option NOT to modify tabs or to substitute any amount of sp...
by bplus
Jul 04, 2017 15:20
Forum: Beginners
Topic: EVAL
Replies: 37
Views: 7142

Re: EVAL

Turns out some Booleans are easier than others. Apparent success with =, >, <, >=, <=, <> but no luck with AND and OR. And as well as Or ( Xor , etc.) are NOT ' Booleans ', they are ' Binary ' operators, in contrast to: AndAlso and OrElse (Boolean, short-cut operators). (If first condition <> match...
by bplus
Jul 04, 2017 14:21
Forum: Sources, Examples, Tips and Tricks
Topic: Browser filter
Replies: 5
Views: 1596

Browser filter

Ah, turns out JD Peters EVAL program had hidden characters inserted by my browser, it wasn't a problem of extra spaces . Here is a Browser filter that cleans up such crud: 'browser filter.bas for FB (B+=MGA) 2017-07-04 wow 1 year since SB version! 'tabs2spaces.bas SmallBASIC 0.12.6 [B+=MGA] 2016-07-...
by bplus
Jul 04, 2017 3:23
Forum: General
Topic: To Independence Day!
Replies: 23
Views: 2476

To Independence Day!

'Psychedelic Star Swirl.bas for FreeBASIC [B+=MGA] 2017-03-15 'from SmallBASIC version 2017-03-01 Randomize Timer Const As Double PI = ACos(-1) Const As Double RAD = PI / 180 Common Shared As Double r, g, b, clr 'Set screen size here dim as integer sw = 600, sh = 600, depth = 32 screenres sw, sh, d...
by bplus
Jul 04, 2017 2:57
Forum: Beginners
Topic: EVAL
Replies: 37
Views: 7142

Re: EVAL

Well I got my JB version translated to FB and working. Turns out some Booleans are easier than others. Apparent success with =, >, <, >=, <=, <> but no luck with AND and OR. Plus, it's supposed to flag errors if it finds a function that isn't known but doesn't, a work in progress. Using some Word To...
by bplus
Jul 03, 2017 21:03
Forum: Beginners
Topic: EVAL
Replies: 37
Views: 7142

Re: EVAL

Hello, I have yet been able to get JD Peters EVAL to run. It seems to be stumbling over every little bit of space eg between the procedure name and (parameters listing), every space at start of line in procedures, an extra space here and there... I am using Windows 10 laptop (64) with FbEdit default...