Skip to content

Data Types

In this section, we will explore the definition of data types used in Black Ink.

Brush Blending

This type of blending is used by brush primitives.

Name Description Formula
Normal alpha Blending traditionnel. new_color = alpha*foreground_color + (1 - alpha)*background_color
Screen additive blending. new_color = alpha*(foreground_color) + background_color
Difference new_color = background_color - (alpha)*(foreground_color)
Multiply new_color = alpha*foreground_color*background_color + (1 - alpha)*background_color

Brush Shape

BTParamType1

This type of blending is used by brush primitives.

Name
Ellipse
EllipseStroke
Rectangle
RectangleStroke
Leaf
LeafStroke