1
Programs / Re: Space Travel w/ Multi-Layered Stars
« on: March 29, 2020, 04:03:02 pm »
I'm having trouble uploading my updated archive.
Listen to QB64 Report!
Our podcast on all things QB64 is out now. Listen at
http://podcast.qb64.org
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Not okay.
I Googled "What is a seamless pattern?"
Top result: A seamless pattern is an image that can be placed side-by-side with copies of itself without any visible seams or interruptions on the content, so you can repeat this image and create a pattern that can go on infinitely to create unique backgrounds, text effects or brand elements.
In other words, images that when tiled, will blend perfectly on all sides of the image.
The image I provided blends perfectly on all four sides of the image when tiled.
I don't know how it is with the more modern Windows, but in the old days of XP and lower it was quite easy to do a screensaver. You would rename the .exe to .scr and place the file in your Windows directory and add it as your screensaver. Not sure if that is still relevant, but there you go. Warp speed ahead. Live Long and Prosper.
Very nice parallax effect!
Maybe a seamless background is the only thing that could make the effect even better.
Here's your [dark_Tiled] made seamless...
Very nice, but it ate my dog. Bring it back.
Now arrived
This would be a REALLY COOL screensaver!
Oh, but one issue: Where is the Enterprise, or the Defiant? Star Treking in space!
GREAT JOB!
Very cool, it gives a nice 3D effect.
That is really a cool effect, opens new horizons for me.
Thank you for sharing, @SirCrow !
Hahaha!
I like that, but perhaps writing code that can error in the first place is the "height of foolishness" an thus we are all fools!
But Luke is right, welcome to the realm of "Be A Responsible Programmer!" don't expect somebody(or something) else to do all the work for you.
So, if sometimes array exists and sometimes not, maybe try this method for array size test:
DIM c(5) AS LONG 'long = 4 bytes, records from 0 to 5 (6 records), so LEN = 24
PRINT LEN(c())
Or - if your code is used in SUB but array Seat is not SHARED, this can also do this error.
Edit:
If you use LEN on a field that does not exist, it will not return a value of 0, as you might expect, but a field value of 11 records. For example, if you write PRINT LEN (NotExists ()), you get a result of 44. The reason is that all variables in QB64 automatically get the assigned size of 10 (including 0) therefore 11 records. Well, if the "NotExists" field does not exist, QB64 counts with the default SINGLE type, which is 4 bytes per record * 11 = 44.
So instead of a complicated field existence test, would always leave it defined, allow a record of 0, and insert a value of 1 if I wanted to process the field, or a value of 0 if I didn't want to process the field. Or you can use an auxiliary variable, but again, that's pretty confusing when more are needed and it's an easy way how to go crazy... look to me... :)
Hi
please say me, is an O ora a 0 as index of array in this line of your code?Code: QB64: [Select]
moreover as you can read here in the wiki http://www.qb64.org/wiki/ERASE
so if Seat is a dynamic array before use Ubound you must REDIM it.