-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamplesFillStrokeColor.html
More file actions
70 lines (57 loc) · 2.9 KB
/
Copy pathexamplesFillStrokeColor.html
File metadata and controls
70 lines (57 loc) · 2.9 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
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="img/icon.png" type="image/png" />
<meta name="viewport" content="width=device-width">
<title>Photopea Actions Lib - Fill, Stroke and Color examples</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1><a id="alogo" href="index.html"><img id="logo" src="img/icon512.png"></a><br>Fill, Stroke and Color examples</h1>
<div class="codeClass" id="FSCC">
<h3>Color functions</h3>
<textarea>
//fgColor(255, 0, 0);
//bgColor(255, 255, 0);
</textarea>
</div>
<div class="codeClass" id="FSCF">
<h3>Fill functions</h3>
<textarea>
//applyFill("MagicReplace", "sword");
//applyFill("MagicReplace");
//applyFill("Foreground");
//applyFill("Foreground", [50.0, "Dfrn", false]); //"Nrml", "Dslv", "Drkn", "Mltp", "CBrn", "linearBurn", "darkerColor", "Lghn", "Scrn", "CDdg", "linearDodge", "lighterColor", "Ovrl", "SftL", "HrdL", "vividLight", "linearLight", "pinLight", "hardMix", "Dfrn", "Xclu", "blendSubtraction", "blendDivide", "H", "Strt", "Clr", "Lmns" - blend mode
//applyFill("Background");
//applyFill("Foreground", [30.0, "Ovrl", true]); //"Nrml", "Dslv", "Drkn", "Mltp", "CBrn", "linearBurn", "darkerColor", "Lghn", "Scrn", "CDdg", "linearDodge", "lighterColor", "Ovrl", "SftL", "HrdL", "vividLight", "linearLight", "pinLight", "hardMix", "Dfrn", "Xclu", "blendSubtraction", "blendDivide", "H", "Strt", "Clr", "Lmns" - blend mode
//applyFill("ContentAware");
//applyFill("Pattern");
//applyFill("Pattern", [30.0, "Ovrl", true, "Default/multihorizontalstripe"]); //"Nrml", "Dslv", "Drkn", "Mltp", "CBrn", "linearBurn", "darkerColor", "Lghn", "Scrn", "CDdg", "linearDodge", "lighterColor", "Ovrl", "SftL", "HrdL", "vividLight", "linearLight", "pinLight", "hardMix", "Dfrn", "Xclu", "blendSubtraction", "blendDivide", "H", "Strt", "Clr", "Lmns" - blend mode; last parameter - pattern name
</textarea>
</div>
<div class="codeClass" id="FSCS">
<h3>Stroke functions</h3>
<textarea>
//applyStroke([30, "Cntr", 50.0, "Ovrl", true, [255.0, 0.0, 0.0] ]); //"Insd", "Cntr", "Otsd" - position // "Nrml", "Dslv", "Drkn", "Mltp", "CBrn", "linearBurn", "darkerColor", "Lghn", "Scrn", "CDdg", "linearDodge", "lighterColor", "Ovrl", "SftL", "HrdL", "vividLight", "linearLight", "pinLight", "hardMix", "Dfrn", "Xclu", "blendSubtraction", "blendDivide", "H", "Strt", "Clr", "Lmns" - blend mode
</textarea>
</div>
<div class="codeClass" id="FSCP">
<h3>Patterns names (from default set)</h3>
<textarea>
//PATTERNS NAMES:
//"Default/orangeslices"
//"Default/pat02"
//"Default/pat03"
//"Default/pat04"
//"Default/pat06"
//"Default/smalldots"
//"Default/multihorizontalstripe"
//"Default/metal-grid-5"
//"Default/pat05"
</textarea>
</div>
<h3 class="home_page"><a href="index.html">Home page</a></h3>
<h4 class="footer">(c) Pustovoit Oleg, 2023</h4>
</body>
</html>