::pixTop, Main, Index
Help procedures.
CommandsTop, Main, Index
colorHTMLtoRGBA [::pix]Top, Main, Index
Converts an HTML color into an RGBA value and returns it as a Tcl list.
Parameters
HTMLcolor | string |
Return value
A Tcl list.
getKeys [::pix]Top, Main, Index
Get all objects from the context and the image.
Return value
A Tcl dictionary with two keys: ctx a Tcl list of all ctx keys and img a Tcl list of all img keys.
mulMatrix [::pix]Top, Main, Index
Multiplies matrices.
Parameters
args | matrix (9 values) |
Return value
The multiplied matrix as a list.
pathObjToString [::pix]Top, Main, Index
Parse path object.
Parameters
path | path::new |
Return value
The parsed path to SVG style path (string).
rotMatrix [::pix]Top, Main, Index
Create rotation matrix.
Parameters
angle | double value (radian) |
matrix | list (9 values) Optional, default "". |
Return value
The matrix rotation as a list.
scaleMatrix [::pix]Top, Main, Index
Create scale matrix.
Parameters
scale | list x,y |
matrix | list (9 values) Optional, default "". |
Return value
The matrix scaled as a list.
svgStyleToPathObj [::pix]Top, Main, Index
Transforms a SVG style path (string) to a path::new object.
Parameters
path | a string in SVG style. |
Return value
A new path object.
toB64 [::pix]Top, Main, Index
Convert an img object to base 64.
Parameters
object | img or ctx object. |
Description
On the Nim side, base64 module is considered unstable, so use the toBinary command instead and then Tcl's binary encode base64 command.
Return value
Returns string.
toBinary [::pix]Top, Main, Index
Convert an img object to binary.
Parameters
object | img or ctx object. |
format | string (png, qoi, bmp, ppm) . Optional, default png. |
Return value
A string in binary format.
transMatrix [::pix]Top, Main, Index
Create translation matrix.
Parameters
trans | list x,y |
matrix | list (9 values) Optional, default "". |
Return value
The matrix translated as a list.