Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong reference to "Style" object #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tutorials/paths/using-color-and-style/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ <h1>Using Color and Style</h1><p>
<canvas height="198" id="canvas-8" width="538"></canvas>
</div>
</div>
<section id="the-pathstyle-object"><a name="the-pathstyle-object" title="The PathStyle Object" class="anchor"><h2>The PathStyle Object</h2></a></section>
<section id="the-style-object"><a name="the-style-object" title="The Style Object" class="anchor"><h2>The Style Object</h2></a></section>
<p>
Every item also has an <tt><a href="/reference/item#style">item.style</a></tt> property which is an object containing only style properties.
</p>
Expand Down Expand Up @@ -337,7 +337,7 @@ <h1>Using Color and Style</h1><p>
As I mentioned earlier, all newly created items automatically receive the currently active path style properties as defined in the Illustrator interface. We can also change these through code by using <tt><a href="/reference/project/currentstyle">currentStyle</a></tt>.
</p>
<p>
<tt><a href="/reference/project/currentstyle">currentStyle</a></tt> is the <tt><a href="/reference/pathstyle">PathStyle</a></tt> object of the project and contains the currently active style properties such as <tt>fillColor</tt> and <tt>strokeColor</tt>.
<tt><a href="/reference/project/currentstyle">currentStyle</a></tt> is the <tt><a href="/reference/style">Style</a></tt> object of the project and contains the currently active style properties such as <tt>fillColor</tt> and <tt>strokeColor</tt>.
</p>
<p>
The following example changes the current style of the project, then creates a path which inherits that style. Then it changes the <tt>strokeWidth</tt> and <tt>fillColor</tt> and creates another path.
Expand Down Expand Up @@ -436,4 +436,4 @@ <h1>Content</h1>
</div>
</aside>
</body>
</html>
</html>