video mode addition

mode addition

When ON, the color is added to the pixels it draws: its red, green and blue values, multiplied by its alpha (from 0 to 1), are added to those of each pixel, up to 255. The alpha channel (transparency) of the video is kept. Each pixel of a line, an outline or a point is added once, the corners of the outline drawn by Draw Rect and the point where two lines of a path join included (the first point of a path that comes back to it too); a pixel where the items of the arrays overlap, or where the lines of a path cross, is added each time.

When OFF, the color is drawn over the pixels with its alpha as opacity: a color of alpha 1 (opaque) replaces them and a color of alpha 0 leaves them unchanged. In between, the video shows through: with the alphas from 0 to 1, each of red, green and blue becomes color x alpha + pixel x (1 - alpha), rounded, and the alpha of the pixel becomes alpha + pixel alpha x (1 - alpha), so that an opaque video stays opaque. On a video with transparency, a pixel that is not opaque is mixed according to its own alpha as well: each of its red, green and blue becomes (color x alpha + pixel x pixel alpha x (1 - alpha)) / new pixel alpha, so that once its transparency is applied it shows the color over the pixel. Each pixel of a line, an outline or a point is drawn once, the point where two lines of a path join included (the first point of a path that comes back to it too), with the color of the line that ends there; where two of them overlap, as the items of the arrays or the lines of a path that cross may, the later one is drawn over the earlier one.

A grid fade scales the alpha of the color, so that the drawing fades with it.

version 7.0.250921

Edit All Pages