0 Members and 1 Guest are viewing this topic.
{L3}+(number of pixel)
{other safeRam}+(number of pixel)
DispGraph(L3,other safeRam)^r
use L6, which is the main buffer
Good luck.
Quote from: ztrumpet on November 20, 2011, 04:58:04 pmuse L6, which is the main bufferYou're serious? Waht? Doesn't that corrupt buffer drawing or something? (btw, I don't understand that statement)
:ClrDraw:255->{L6}:rand->{L6+766}r // This is the superscript r:DispGraph:Repeat getKey(15):End
Quote from: macweirdo on November 20, 2011, 05:01:41 pmQuote from: ztrumpet on November 20, 2011, 04:58:04 pmuse L6, which is the main bufferYou're serious? Waht? Doesn't that corrupt buffer drawing or something? (btw, I don't understand that statement)The main buffer is what gets displayed with a DispGraph. If there's something else there, that will be drawn instead.For instance, try this code and see if you can figure out what is happening:Code: [Select]:ClrDraw:255->{L6}:rand->{L6+766}r // This is the superscript r:DispGraph:Repeat getKey(15):End
Quote from: ztrumpet on November 20, 2011, 05:07:58 pmQuote from: macweirdo on November 20, 2011, 05:01:41 pmQuote from: ztrumpet on November 20, 2011, 04:58:04 pmuse L6, which is the main bufferYou're serious? Waht? Doesn't that corrupt buffer drawing or something? (btw, I don't understand that statement)The main buffer is what gets displayed with a DispGraph. If there's something else there, that will be drawn instead.For instance, try this code and see if you can figure out what is happening:Code: [Select]:ClrDraw:255->{L6}:rand->{L6+766}r // This is the superscript r:DispGraph:Repeat getKey(15):EndSo storing data there is just like doing a Pxl-On( to that buffer?
Quote from: macweirdo on November 20, 2011, 05:12:20 pmQuote from: ztrumpet on November 20, 2011, 05:07:58 pmQuote from: macweirdo on November 20, 2011, 05:01:41 pmQuote from: ztrumpet on November 20, 2011, 04:58:04 pmuse L6, which is the main bufferYou're serious? Waht? Doesn't that corrupt buffer drawing or something? (btw, I don't understand that statement)The main buffer is what gets displayed with a DispGraph. If there's something else there, that will be drawn instead.For instance, try this code and see if you can figure out what is happening:Code: [Select]:ClrDraw:255->{L6}:rand->{L6+766}r // This is the superscript r:DispGraph:Repeat getKey(15):EndSo storing data there is just like doing a Pxl-On( to that buffer?Kind of. It's just another way of drawing stuff.Remember that the data on the buffer is stored in binary, and because of this 255 = FFh = 11111111b makes 8 pixels in a row black.
getCalc("appvMYAPPV", 766)->A3->{A+766}DispGraph(L3,A)^^r
Buff(766,0)->A3->{A+766}DispGraph(L3,A)^^r
EDIT: why do I have -3 karma?
Quote from: macweirdo on November 20, 2011, 07:48:36 pmEDIT: why do I have -3 karma?Because three people disliked this post and downvoted it.
Just an FYI, if you absolutely needed more free ram and all the buffers are taken, you could create an appvar and use that:Code: [Select]getCalc("appvMYAPPV", 766)->A3->{A+766}DispGraph(L3,A)^^rYou could also do something likeCode: [Select]Buff(766,0)->A3->{A+766}DispGraph(L3,A)^^r...although you'd be adding the buffer directly to the program itself (inflating its size by 766 bytes) + I don't think you can modify buffers you have inside the program if you turn your program into an app.
Two things I must mention. First, buffers are 768 bytes. Second, creating a variable of size 766 in A and storing a value to A+766 will corrupt whatever is next in memory.
Why is 3 being stored there, anyway?