No Black Showing!

BlitzPlus Forums/BlitzPlus Programming/No Black Showing!

Hello, All

I've just been loading my graphics into memory and displaying them, it works fine but i decided to change the Cls colour to whitish, but now it's not showing any black in my images.

AppTitle "BreakIn!"

Local ScreenHeight = 165
Local ScreenWidth = 165
Graphics ScreenWidth,ScreenHeight

Local Pad = LoadImage("Pad.bmp")
Local PadX = 0
Local PadY = 128

SetBuffer BackBuffer()

ClsColor 250,250,250

While Not KeyDown(1)

Cls
DrawImage Pad,PadX,PadY
Flip

If KeyDown(203) Then PadX = PadX - 1: Delay 15
If KeyDown(205) Then PadX = PadX + 1: Delay 15

Wend
End

.

The black colour is the transparent color by default. That means, it will never be displayed.

If you need to display it, you need to change the image's default transparent colour with the command MaskImage.

Just set it to a color that you don't use in your image, for example pink.

Alternatively, you can draw the image with DrawBlock command. This command will ignore any transparent color, which means, all the colour will be considered solid colour, and there will be no transparent colours.

Sergio.

.

"Out of the Blue, and into the Black" - Neil Young

"And once you're gone... You can't come back"

LOL !

@Wiebo,
shouldn't be instead: "You can't come black" ?

Sergio.

I would be very concerned if he did come bl... em... ok... children on the board.

semar:
I'm sure it's 'back'... makes more sense as well =]

'rock and roll is here to stay'