Author Topic: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)  (Read 21166 times)

0 Members and 2 Guests are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #15 on: December 10, 2010, 07:08:10 pm »
Woah that looks great! I wonder how it looks like on-calc... is the blinking very visible?

Ashbad

  • Guest
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #16 on: December 10, 2010, 07:13:35 pm »
An exemple of code to see 8 level grayscales :
Code: [Select]
:.GRAY8
:[0000000000000000→Pic1
:[FFFFFFFFFFFFFFFF]
:0→A→B→C
:Repeat getKey(15)
:sub(GR)
:DispGraph<sup>r</sup><sup>r</sup>
:End
:Return
:
:Lbl GR
:ClrDraw
:ClrDraw<sup>r</sup>
:1-C→C
:For(Y,0,7)
:For(X,0,11)
:If X+1^2+C
:If 1-A→A
:1-B→B
:End
:End
:Pt-Off(X*8,Y*8,B*8+Pic1)
:Pt-Off(X*8,Y*8,A*8+Pic1)<sup>r</sup>
:End
:End
Top left, there is in order:
black and black, black and gray 75%, gray 75% and gray 25%, gray 75% and white, gray 25% and black, gray 25% and gray 75%, white and gray 25%, white and white.
B change buffer and A back-buffer. C alternates between two screens imaginary.

Actually there is only 7 grayscale (gray 75% and gray 25% = gray 25% and gray 75%).

EDIT : Woa, it work perfectly with full mode.

sick man!

and I think there really is a difference between those tow, just very slight, so yeah it is 8 level :)

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #17 on: December 10, 2010, 07:16:42 pm »
Woah that looks great! I wonder how it looks like on-calc... is the blinking very visible?
Correct on 83+.

And now, 16 grayscales  >:D

Here a gif with wabbitemu :
« Last Edit: December 10, 2010, 07:17:15 pm by kindermoumoute »
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #18 on: December 10, 2010, 07:17:10 pm »
That screenshot looks nice.

Ashbad

  • Guest
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #19 on: December 10, 2010, 07:17:25 pm »
Woah that looks great! I wonder how it looks like on-calc... is the blinking very visible?
Correct on 83+.

And now, 16 grayscales  >:D


the cake is a lie!
* Ashbad wonders what 32 color looks like...

edit: and c.sprinkle I see you are now on omnimaga too from cemetech!  welcome! :D
« Last Edit: December 10, 2010, 07:18:35 pm by Ashbad »

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #20 on: December 10, 2010, 07:22:09 pm »
Limit is.... 144 grayscales  :banghead:

EDIT : approximately.
« Last Edit: December 10, 2010, 07:22:42 pm by kindermoumoute »
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #21 on: December 10, 2010, 07:23:30 pm »
woot 144 greyscales...
Sig wipe!

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #22 on: December 10, 2010, 07:24:32 pm »
That looks pretty cool.
Ashbad:
Chances are if nobody's posting on Cemetech, someone is here and vice versa. That way I can always have someone to discuss programs with.

Ashbad

  • Guest
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #23 on: December 10, 2010, 07:25:59 pm »
holy shit...

your gray scale routine in pure axe is the best I've ever seen...
* Ashbad hands kindermoumoute the Nobel prize for politics


c.sprinkle: I figure the same, though I check cemetech 30% of time and omnimaga 70% of time
« Last Edit: December 10, 2010, 07:27:29 pm by Ashbad »

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #24 on: December 10, 2010, 07:29:27 pm »
holy shit...

your gray scale routine in pure axe is the best I've ever seen...
* Ashbad hands kindermoumoute the Nobel prize for politics


c.sprinkle: I figure the same, though I check cemetech 30% of time and omnimaga 70% of time

An entire evening making head to look for this algorithm instead of revising my courses. :love:
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #25 on: December 10, 2010, 07:31:03 pm »
I suppose that means you spend a lot of time posting???
:)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #26 on: December 10, 2010, 07:32:24 pm »
That looks pretty cool.
Ashbad:
Chances are if nobody's posting on Cemetech, someone is here and vice versa. That way I can always have someone to discuss programs with.
Heya welcome on Omnimaga! And yeah I agree that both forums got plenty of calculator fans to discuss with plus plenty of varied discussions. I hope you enjoy your stay in the community. :)

Limit is.... 144 grayscales  :banghead:

EDIT : approximately.
O.O

I really need to try on calc, though. I wonder if it would be practical to use 16 level inside a game in 15 Mhz mode? Sprites might become pretty large in size.

I think I'll dig up my TI-83 Plus Silver Edition and see how it looks like later. :)

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #27 on: December 10, 2010, 07:33:13 pm »
so...if you implement this on games, will it slow down a game a lot?
Sig wipe!

Offline c.sprinkle

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 221
  • Rating: +23/-1
  • There ain't no rest for the wicked? True indeed.
    • View Profile
    • The Corread on NationStates.
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #28 on: December 10, 2010, 07:35:44 pm »
Yeah, probably. The grayscale support for three and four- color is pretty fast, but higher is slowing down by a noticeable amount.

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Axe 8-level (ish :P) Greyscale (With Code Example!!!!)
« Reply #29 on: December 10, 2010, 07:36:36 pm »
Holy!!!! :o  O.O 144 shades!?!?!? That's  :crazy:  Good job man :thumbsup: I wonder if this has even been done before with pure ASM.