some code I modified to do a title boarder or button.
Gradient(1,screen width(),100,rgb(155,155,155),rgb(64,64,64),rgb(0,0,0),2,4,6)
do
paste image 1,0,0,1
sync
loop
function Gradient(ImageNo , Width , Height , Colour1 as dword , Colour2 as dword,colour3 as dword, blur as integer,edge1 as integer, edge2 as integer)
create bitmap 1,Width,Height
box 0,0,Width,Height,Colour2,Colour1,Colour2,Colour1
box edge1,edge1,Width-edge1,Height-edge1,colour3,0,colour3,0
box edge2,edge2,Width-edge2,Height-edge2,Colour1,Colour2,Colour1,Colour2
BLUR BITMAP 1,blur
get image imageno,0,0,width,height,1
delete bitmap 1
endfunction
Dark Physics makes any hot drink go cold.