Author Topic: Simple 2d Window w/border  (Read 6412 times)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1645
  • Particle Hawk
    • View Profile
Simple 2d Window w/border
« on: 2004-Oct-21 »
Quote
Grey 2d Window- this looks like the windows 98's  Window borders
Useage:
Code: (glbasic) [Select]
WINDOW(10,20,30,40)What the numbers represent:
Quote
Where:
10 = Window start X
20 = Window start Y
30 = Window end X
40 = Window end Y
Function:
Code: (glbasic) [Select]
FUNCTION WINDOW: Wsx,Wsy,Wex,Wey
FILLRECT Wsx, Wsy, Wex, Wey, RGB(64,64,64)
FILLRECT Wsx, Wsy, Wex-1, Wey-1, RGB(255,255,255)
FILLRECT Wsx+1, Wsy+1, Wex-1, Wey-1, RGB(128,128,128)
FILLRECT Wsx+1, Wsy+1, Wex-2, Wey-2, RGB(212,208,200)
FILLRECT Wsx+2, Wsy+2, Wex-3, Wey-3, RGB(255,255,255)
FILLRECT Wsx+2, Wsy+2, Wex-4, Wey-4, RGB(128,128,128)
FILLRECT Wsx+4, Wsy+4, Wex-4, Wey-4, RGB(212,208,200)
FILLRECT Wsx+4, Wsy+4, Wex-5, Wey-5, RGB(64,64,64)
FILLRECT Wsx+5, Wsy+5, Wex-5, Wey-5, RGB(48,48,48)
ENDFUNCTION
Quote
TIP:
You can add more inputs to the function,
, like color and/or special effects or buttons etc.
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)