pix 0.7: Reference Manual

::pix::paintTop, Main, Index

Enum PaintKind:Top, Main, Index

PaintKindenum
SolidPaint 
ImagePaint 
TiledImagePaint 
LinearGradientPaint 
RadialGradientPaint 
AngularGradientPaint 

CommandsTop, Main, Index

configure [::pix::paint]Top, Main, Index

Configure paint object parameters.

configure paint options
Parameters
paintpaint
optionsA Tcl dict (options described below)
Description

image A object img.
imageMat A list matrix.
color A string color.
blendMode A Enum value.
opacity A double value.
gradientHandlePositions A list positions {{x y} {x y}}.
gradientStops A list color + color position (double value).
Return value

Nothing.

copy [::pix::paint]Top, Main, Index

Create a new Paint with the same properties.

copy paint
Parameters
paintpaint::new
Return value

A new paint object.

destroy [::pix::paint]Top, Main, Index

Destroy current paint or all paints if special word all is specified.

destroy value
Parameters
valuepaint::new object or string.
Return value

Nothing.

fillGradient [::pix::paint]Top, Main, Index

Fills with the Paint gradient.

fillGradient paint image
Parameters
paintpaint::new
imageimg::new
Return value

Nothing.

new [::pix::paint]Top, Main, Index

Sets a new paint.

new paintKind
Parameters
paintKindEnum value
Return value

A new paint object.