qbasicking
Programmer
I asked a question about this a while ago, but nobody really answered it. Well, while I was trying to figure out a way to make a compact and fast font for my GUI I nailed it. There is to be no more guess work with line
What I am is talking about is 'dot' in:
LINE (100,100)-(200,100),,,dot
The last number is figured out in binary, and it goes in loops of 15 here is a chart that will help you (am me)
32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
so say you want a line that goes 0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1
figure out it out by plugging it into the table and adding all the values together
32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
0 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1
Now add up all the numbers that had a 1 under them
8192+4096+1024+128+64+8+2+1=13515
LINE (100,100)-(200,100),,,13515
What I am is talking about is 'dot' in:
LINE (100,100)-(200,100),,,dot
The last number is figured out in binary, and it goes in loops of 15 here is a chart that will help you (am me)
32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
so say you want a line that goes 0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1
figure out it out by plugging it into the table and adding all the values together
32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
0 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1
Now add up all the numbers that had a 1 under them
8192+4096+1024+128+64+8+2+1=13515
LINE (100,100)-(200,100),,,13515