7.5

Table Of Contents
SetStrokeColor (procedure)
Sets the colour of the pen used for drawing lines, boxes and other objects.
Syntax
setstrokecolor( colour )
Argument
colour
Colour array that can be expressed expressed using one, three or four values ranging from 0 to 255. For Grayscale, a single
value is used in the form [K]. For the RGB model, three values are used in the form [R, G, B]. For the CMYK model, four values
are used in the form [C, M, Y, K].
Code Sample Example
This example draws two empty rectangles of different colors.
Example
setstrokecolor([0,0,100]) %Sets stroke color to medium blue using the RGB model
rectstroke(0,0,1,1) %Draws a medium blue rectangle
setstrokecolor([0,0,255,0]) %Sets stroke color to bright yellow using the CMYK model
rectstroke(1,1,1,1) %Draws a bright yellow rectangle
SetStyle (procedure)
Sets the style to be used for all subsequent commands. The specified style must already exist in the document.
SetStyle() supercedes the SetFont() command. Although PlanetPress Talk still recognizes SetFont(), this behavior is
unlikely to continue in future versions, and it is therefore highly recommended that you use the SetStyle() command in your
scripts.
Syntax
setstyle( stylename )
Argument
stylename
Name of the style to use for all subsequent commands. The name of the style must be preceded by an ampersand. You can ref-
erence the bold, italic, or underlined versions of a font by appending the appropriate letter or letters to the name of the style.
Append .b for the bold version, .i for the italic version, .bi for the bold italic version, and .u for the underlined version.
Code Sample Example
This example displays a line of text using two different existing styles called Blackfont and Bluefont.
Example
©2010 Objectif Lune Inc - 449 -