class DDrawingPixel is a DDrawingPrimitive that highlights a pixel in the viewer window by a cross.
More...
class DDrawingPixel is a DDrawingPrimitive that highlights a pixel in the viewer window by a cross.
It is defined by its position.
| def dectris.albula.DDrawingPixel.DDrawingPixel |
( |
|
x, |
|
|
|
y, |
|
|
|
red, |
|
|
|
green, |
|
|
|
blue, |
|
|
|
alpha = 255 |
|
) |
| |
Construct DDrawingPixel given its position and color.
- Parameters
-
| x | Float. X-Position. |
| y | Float. Y-Position. |
| red | Integer between 0 and 255 |
| green | Integer between 0 and 255 |
| blue | Integer between 0 and 255 |
| alpha | Integer between 0 and 255. alpha defines the opacity of the displayed primitive. |
| def dectris.albula.DDrawingPixel.setX |
( |
|
x | ) |
|
Set X-Position.
- Parameters
-
| def dectris.albula.DDrawingPixel.setY |
( |
|
y | ) |
|
Set Y-Position.
- Parameters
-
| def dectris.albula.DDrawingPixel.x |
( |
| ) |
|
X-Position.
- Returns
- Float.
| def dectris.albula.DDrawingPixel.y |
( |
| ) |
|
Y-Position.
- Returns
- Float.