|
111.
|
|
|
When the four components of the source color are R, G, B, and A, which range from 0.0 to 1.0; the four components of the transformed color are R', G', B', and A', with the same range; and the elements of the matrix are named::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:12
|
|
112.
|
|
|
the transformed colors can be computed with the formula::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:22
|
|
113.
|
|
|
The components of the transformed color are clamped to the range [0.0, 1.0].
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:29
|
|
114.
|
|
|
Constructs an im.matrix object from `matrix`. im.matrix objects support The operations supported are matrix multiplication, scalar multiplication, element-wise addition, and element-wise subtraction. These operations are invoked using the standard mathematical operators (\*, \*, +, and -, respectively). If two im.matrix objects are multiplied, matrix multiplication is performed, otherwise scalar multiplication is used.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:34
|
|
115.
|
|
|
`matrix` is a 20 or 25 element list or tuple. If it is 20 elements long, it is padded with (0, 0, 0, 0, 1) to make a 5x5 matrix, suitable for multiplication.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:42
|
|
116.
|
|
|
Returns an im.matrix that alters the brightness of an image.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:48
|
|
117.
|
|
|
`b`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:52
|
|
118.
|
|
|
The amount of change in image brightness. This should be a number between -1 and 1, with -1 the darkest possible image and 1 the brightest.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:51
|
|
119.
|
|
|
Returns an im.matrix that colorizes a black and white image. `black_color` and `white_color` are Ren'Py style colors, so they may be specified as strings or tuples of (0-255) color values. ::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:57
|
|
120.
|
|
|
Returns an im.matrix that alters the contrast of an image. `c` should be greater than 0.0, with values between 0.0 and 1.0 decreasing contrast, and values greater than 1.0 increasing contrast.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:69
|