Scilab 5.3.3
- Aide Scilab
- Graphiques
- 2d_plot
- 3d_plot
- annotation
- axes_operations
- axis
- bar_histogram
- Gestion des couleurs
- geometric_shapes
- handle
- interaction
- pie
- polygon
- style
- text
- transform
- window_control
- Datatips
- figure_operations
- load_save
- property
- Graphics
- alufunctions
- object_editor
- square
- xbasr
- xchange
- xclear
- xdel
- xgetech
- xgraduate
- xgrid
- xname
- xnumb
- xpause
- xsegs
- xset
- xsetech
- xsetm
- GlobalProperty
- clear_pixmap
- Compound_properties
- graphics_entities
- pixel_drawing_mode
- plzr
- rubberbox
- segs_properties
- show_pixmap
- twinkle
- xget
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
pixel_drawing_mode
bitwise pixel rendering functions.
Description
Here, the color encoding is RGB.
The pixel drawing mode is a figure property that
specifies a bitwise operation applied on any figure pixel between the incoming color and the already existing color on the figure.
The result of this operation will be the new pixel color.
src
is the incoming color of the pixel.
prv
is the previus color of the pixel (which is already drawn).
res
is the resulting color of the pixel (which will be drawn).
Possible values for pixel_drawing_mode
are:
value | bitwise operation | comments |
0 | CLEAR | Result color is black |
1 | AND | res = src AND prv |
2 | AND REVERSE | res = src AND (NOT prv) |
3 | COPY | res = src, default value |
4 | AND INVERTED | res = (NOT src) AND prv |
5 | NOOP | res = prv |
6 | XOR | res = src XOR prv |
7 | OR | res = src OR prv |
8 | NOR | res = NOT (src OR prv) |
9 | EQUIV | res = (NOT src) XOR prv |
10 | INVERT | res = NOT prv |
11 | OR REVERSE | res = src OR (NOT prv) |
12 | COPY INVERTED | res = NOT src |
13 | OR INVERTED | res = (NOT src) OR prv |
14 | NAND | res = NOT (src AND prv) |
15 | SET | Result color is white |
<< graphics_entities | Graphiques | plzr >> |