SetClsColor with alpha: (should be fixed now)
Rem BBDoc: Like BRL.SetCLSColor, but allowes for alpha backgrounds. About: Useful if you want to save images with alpha using GrabPixmap. EndRem Function CE_SetClsColor( red%,green%,blue% ,alpha#=1.0) red=Max(Min(red,255),0) green=Max(Min(green,255),0) blue=Max(Min(blue,255),0) alpha=Max(min(alpha,1.0),0.0) If TD3D7Max2DDriver(_max2dDriver) TD3D7Max2DDriver(_max2dDriver).clscolor=(Int(alpha*255) Shl 24) |(red Shl 16)|(green Shl 8)|blue Else glClearColor red/255.0,green/255.0,blue/255.0,alpha EndIf End Function