Sfairadora

  • Reference Guide

draw_pixel

var_bmp <- draw_pixel(x, y, color)
The var_bmp parameter is an l-value referring to a variable of the type Bitmap. The function sets the color of a single pixel in the bitmap.

Parameters

var_bmp
An l-value of the type Bitmap to which the function draws.
x, y
The coordinates of the pixel.
color
The color (the type Color) to be set to the pixel. It can be constructed with the color function. If the bitmap is paletted or monochrome, the nearest available color is used.

Return Value

The return value is an l-value referring to the modified bitmap.