dlMakeStipple
dlMakeStipple(
t_StippleString
)
=> x_stippleId / nil
Description
Creates a stipple pattern from the supplied string.
Argument
|
t_StippleString
|
String that has a special form. The string is composed of 1s, 0s and newline characters \n and " " (space) characters. The string describes an array of bits that define a stipple pattern. Each newline \n or " " (space) character in the string begins a new row of bits. Each row must have the same number of characters in it, or the functions return nil. This is a sample stipple pattern:
stipString = "0101\n\
1010\n\
0101\n\
1010"
stippleId = dlMakeStipple( stipString)
In this example, a 4x4 stipple pattern is created and its ID returned. The 1 character specifies the bits turned on, and the 0 character returns the bits turned off. The maximum size of a pattern is 64x64.
|
Values Returned
|
stippleID
|
Returns stippleID of the stipple pattern.
|
|
nil
|
Operation failed.
|
Related Topics
Display List Pen Functions
Return to top