http://calcg.org/newlogo2.png Not Logged in.
Login | Register

General Discussion Board \ Calculator Programming \ Real Grayscale!

Click here to log in (you must be logged in to post comments).

AuthorComment
haveacalc
Guardian
avatar
Posted: 18 May 2007
12:41 GMT
Total Posts: 1111
Ok, I just stumbled on this today during school. I think it's one of the coolest discoveries I've made, a worthy piece of news, and something that may change 83/84 family programming forever. I never thought that half-bits were real, but I'm kind of wondering now.

Even though I'm sure it can be cut down to a single program, this discovery involved two. Here's the first:
PROGRAML:GRAYASM
AsmPrgm
F30E20
CD0B0079D310CD0B00
06403E80D310CD0B00
3EFFD311CD0B0010F9
0C79FE2C20EBFBC9
The second program is this, though you can screw with it easily:
PROGRAM:GBASIC
For(C,0,88,16
For(B,C,C+7
Asm(prgmGRAYASM
For(A,0,62,2
Pxl-Change(A,B
End
End
End
Text(-1,30,18,"GRAYSCALE!
Run prgmGBASIC. When it finishes, you should have some grayscale columns. Part of "GRAYSCALE!" should be regular. Another thing to observe is that the grayscaled areas (including unshaded pixels) react differently to a change in the screen intensity (especially darkening) than the rest of the screen does. Grayness only comes in columns, but grayscale images can still be stored to pic variables. After a RAM clear, though, the obviousness of the image being grascale diminishes (though the grayscality is still there). I have yet to do much experimenting with this, but I'm sure others will after the news spreads. The best part of this is that a significant amount of 3-level grayscale is now available to pure BASIC programmers (with the pre-running of an ASM one).

---
-quoted directly from most movies that don't exist (and some that do).
threefingeredguy
Ghost
avatar
Posted: 18 May 2007
22:35 GMT
Total Posts: 1189
Lawdy.

---
Someone call for an exterminator?
me2
Goliath
avatar
Posted: 24 May 2007
18:00 GMT
Total Posts: 171
you can do that with Xlib by using a while loop to clear part of the screen as you move...

---
<--- Going out with a bang.
threefingeredguy
Ghost
avatar
Posted: 26 May 2007
17:49 GMT
Total Posts: 1189
Except then that's all you can. BASIC sucks.

---
Someone call for an exterminator?





Portal | My Account | Register | Lost Password or Username | TOS | Disclaimer | Help | Site Search | File Archives Copyright © 2002-2019 CalcG.org