|
111.
|
|
|
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
|
|
112.
|
|
|
`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
|
|
113.
|
|
|
Returns an im.matrix that alters the brightness of an image.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:48
|
|
114.
|
|
|
`b`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:52
|
|
115.
|
|
|
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
|
|
116.
|
|
|
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 specfied as strings or tuples of (0-255) color values. ::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:57
|
|
117.
|
|
|
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
|
|
118.
|
|
|
Returns an im.matrix that desaturates the image (makes it grayscale). This is equivalent to calling im.matrix.saturation(0).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:75
|
|
119.
|
|
|
Returns an im.matrix that rotates the hue by `h` degrees, while preserving luminosity.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:81
|
|
120.
|
|
|
Returns an identity matrix, one that does not change color or alpha.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:86
|