This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathcapStyle.lcdoc
More file actions
57 lines (39 loc) · 1.72 KB
/
capStyle.lcdoc
File metadata and controls
57 lines (39 loc) · 1.72 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
Name: capStyle
Type: property
Syntax: set the capStyle [of graphic] to <style>
Summary:
Specifies how the ends of <line|lines> and <dashes> are drawn.
Associations: graphic
Introduced: 3.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
set the capStyle of graphic "dashedRectangle1" to "round"
Example:
# create a graphic object and set several of its properties
create graphic "newline"
set the style of graphic "newline" to "line"
set the points of graphic "newline" to 50,50 & return & 200,200
set the lineSize of graphic "newline" to 6
set the capStyle of graphic "newline" to "butt"
Value (enum): The <capStyle> of a graphic is one of the following:
- "round" - Lines are ended by a half-circle centred at the end-point of
the line. This is the default.
- "butt" - No cap is added.
- "square" - The edge is extended beyond the end-point by half the line
width.
Description:
Set the <capStyle> <property> to specify how the ends of <line|lines>
and <dashes> are drawn.
Setting the <capStyle> <property> changes the appearance of <line> and
<dashes|dash> ends for <graphic> objects. If the <graphic|graphic's>
<lineSize> <property> is 1, the setting of the <capStyle> has no effect.
>*Note:* This only affects <polygon>, freehand <curve> and line
> <graphic|graphics> which have their <antialiased> set to true.
>*Note:* Setting the <roundEnds> of a <graphic> to true sets the
> <capStyle> of the <graphic> to "round".
Setting the <roundEnds> of a <graphic> to false sets the <capStyle> of
the <graphic> to "butt".
References: property (glossary), curve (keyword), line (keyword),
polygon (keyword), graphic (object), antialiased (property),
dashes (property), lineSize (property), roundEnds (property)