Image.blitMask
From Spheriki
Draw the image into the video buffer, except that the color passed as 'mask' tints the image.
Usage
- image Sphere Image object. The image to draw to the video buffer.
- x Number. The position on the x-axis to draw the image, in pixels.
- y Number. The position on the y-axis to draw the image, in pixels.
- mask Sphere Color object. The tint color to give the drawn image.
Examples
var White = CreateColor(255, 255, 255); var image = LoadImage("image.png"); image.blitMask(0, 0, White); FlipScreen();
Draws "image.png" onto the screen at the top left corner, and then displays it with the colour Mask, in this case, "White".
See also
- CreateColor()
- FlipScreen()
- LoadImage()