Author Topic: GreyScale Splash Screen  (Read 13096 times)

0 Members and 2 Guests are viewing this topic.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: GreyScale Splash Screen
« Reply #15 on: February 17, 2011, 10:02:59 pm »
Correction :P

Code: [Select]
ᴇFFFF→{L₃}ʳ
Fill(L₃+1,766)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: GreyScale Splash Screen
« Reply #16 on: February 17, 2011, 10:03:47 pm »
Correction :P

Code: [Select]
ᴇFFFF→{L₃}ʳ
Fill(L₃+1,766)

Whoops. I really need sleep x.x.x




Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: GreyScale Splash Screen
« Reply #17 on: February 18, 2011, 01:29:50 am »
For the smallest you can use ClrDrawr:DrawInvr methinks

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: GreyScale Splash Screen
« Reply #18 on: February 18, 2011, 01:31:28 am »
Wouldn't Rect(0,,96,64)r work?
Vy'o'us pleorsdti thl'e gjaemue

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: GreyScale Splash Screen
« Reply #19 on: February 18, 2011, 01:33:30 am »
Rect(0,,96,)r works too methinks, its clipped right?

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: GreyScale Splash Screen
« Reply #20 on: February 18, 2011, 01:35:34 am »
Umm...define "clipped"

I think that would work, Rect( can go off screen right?


EDIT: I'm an addict now :w00t:
« Last Edit: February 18, 2011, 01:36:33 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: GreyScale Splash Screen
« Reply #21 on: February 18, 2011, 01:36:10 am »
if I make a rectangle 96x96 in Axe, it will still fill the screen properly and won't give me strange errors

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: GreyScale Splash Screen
« Reply #22 on: February 18, 2011, 01:38:09 am »
I don't know exactly...I think I've had rectangles go off-screen before, but I've avoided it for the most part.
What comes after L6?  Is it safe to write there, or does Axe stop at the end of the list?
Vy'o'us pleorsdti thl'e gjaemue

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: GreyScale Splash Screen
« Reply #23 on: February 18, 2011, 01:41:21 am »
Its very very unsafe to write to places after L6, some very important things are there.  Thats why i belive Quigibo added clipping in the first place, so that people wouldn't crash their calcs when a rectangle goes off screen

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: GreyScale Splash Screen
« Reply #24 on: February 18, 2011, 01:43:24 am »
So...clipping is the inability to draw offscreen?
Vy'o'us pleorsdti thl'e gjaemue

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: GreyScale Splash Screen
« Reply #25 on: February 18, 2011, 01:43:36 am »
For the smallest you can use ClrDrawr:DrawInvr methinks

If the DrawInv routine already exists in your program, then yes, that is the smallest solution. Here would be my priorities for the smallest way to fill the back buffer based on what routines already exist in your program:
  • If the DrawInv routine exists  —  ClrDrawr:DrawInv r [12 bytes]
  • If the Rect() routine exists  —  Rect(0,,-1,)r [18 bytes]
  • Otherwise  —  EFFFF→{L3}r:Fill(L3+1,766) [20 bytes]

Also, in case anyone was wondering, the smallest ways to fill the front buffer:
  • If the DrawInv routine exists  —  ClrDraw:DrawInv [6 bytes]
  • If the Rect() routine exists  —  Rect(0,,-1,) [10 bytes]
  • If the RectI() routine exists  —  ClrDraw:RectI(0,,-1,) [13 bytes]
  • Otherwise  —  EFFFF→{L6}r:Fill(L6+1,766) [20 bytes]

And the smallest ways to fill both buffers:
  • If the DrawInv routine exists  —  ClrDraw:DrawInv :StorePic [17 bytes]
  • If the Rect() routine exists  —  Rect(0,,-1,):StorePic [21 bytes]
  • If the RectI() routine exists  —  ClrDraw:RectI(0,,-1,):StorePic [24 bytes]
  • Otherwise  —  ClrDraw:DrawInv :StorePic [33 bytes]
« Last Edit: February 18, 2011, 01:47:08 am by Runer112 »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: GreyScale Splash Screen
« Reply #26 on: February 18, 2011, 02:31:07 pm »
"I had it set Fix 4 at the beginning, that is why. It works now. Thanks."

Fix 5 makes it able to have text and images in the same screen.
Fix 4 disables it, ALWAYS DISABLE IT (Fix 4) BEFORE THE PROGRAM CLOSES, ALWAYS.

Your calculator can crash I think.
I never disable fix 5 and i've never had weird problems... other fixes are nice to experiment ( for example: a fix1 program makes all text white on black :) )
I'm not a nerd but I pretend:

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: GreyScale Splash Screen
« Reply #27 on: February 18, 2011, 07:45:12 pm »
"I had it set Fix 4 at the beginning, that is why. It works now. Thanks."

Fix 5 makes it able to have text and images in the same screen.
Fix 4 disables it, ALWAYS DISABLE IT (Fix 4) BEFORE THE PROGRAM CLOSES, ALWAYS.

Your calculator can crash I think.
I never disable fix 5 and i've never had weird problems... other fixes are nice to experiment ( for example: a fix1 program makes all text white on black :) )


That would be Fix 3, but be warned: Fix 1 (which enables large font text) can crash your calculator if you use 2.53/55MP's ALPHA menus.