forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrushPattern.lcdoc
More file actions
64 lines (46 loc) · 2.15 KB
/
Copy pathbrushPattern.lcdoc
File metadata and controls
64 lines (46 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Name: brushPattern
Synonyms: pattern
Type: property
Syntax: set the brushPattern to {<patternNumber> | <imageID>}
Summary:
Specifies the pattern used to paint with the Brush <tool> and to fill
shapes in an <image>.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
set the brushPattern to 204
Value:
The <brushPattern> is a pattern specifier.
A <patternNumber> is a built-in pattern number between 1 and 164. These
patterns are provided for compatability with patterns available in
MetaCard and correspond to LiveCode's built in image id 137 to 300. As
with MetaCard pattern numbers 105 to 114 and 146 and above are
unavailable.
An <imageID> is the ID of an <image> to use for a pattern. LiveCode
looks for the specified <image> first in the <current stack>, then in
other open <stacks>.
By default, the <brushPattern> is empty.
Description:
Use the <brushPattern> <property> to change the pattern used with the
<bucket>, <spray can>, and <brush> <paint tool|paint tools>, and for the
interior of filled shapes.
Pattern images can be color or black-and-white.
>*Cross-platform note:* To be used as a pattern on <Mac OS|Mac OS
> systems>, an <image> must be 128x128 <pixels> or less, and both its
> <height> and <width> must be a power of 2. To be used on <Windows> and
> <Unix|Unix systems>, <height> and <width> must be divisible by 8. To
> be used as a fully cross-platform pattern, both an image's dimensions
> should be one of 8, 16, 32, 64, or 128.
If the <brushPattern> has been set since the last time the <brushColor>
was set, the pattern is used instead of the color specified by
<brushColor>. In other words, the last-set <property> takes priority.
References: choose (command), tool (function), stacks (function),
property (glossary), Windows (glossary), paint tool (glossary),
Mac OS (glossary), Unix (glossary), current stack (glossary),
image (keyword), rectangle (keyword), roundRect (keyword),
polygon (keyword), spray can (keyword), bucket (keyword), brush (keyword),
oval (keyword), regular (keyword), brushColor (property),
height (property), penPattern (property), pixels (property),
width (property)
Tags: ui