mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Documentation: rename 'Sample Code:' to 'Example:'
This commit is contained in:
parent
17fcb923ff
commit
6892608ecd
5 changed files with 5 additions and 5 deletions
|
@ -37,7 +37,7 @@ var Point = this.Point = Base.extend({
|
|||
* of the Paper.js project. It is also used to represent two dimensional
|
||||
* vector objects.
|
||||
*
|
||||
* Sample code:
|
||||
* Example:
|
||||
* <pre>
|
||||
* // Create a point at x: 10, y: 5
|
||||
* var point = new Point(10, 5);
|
||||
|
|
|
@ -35,7 +35,7 @@ var Size = this.Size = Base.extend({
|
|||
* @class The Size object is used to describe the size of something, through
|
||||
* its {@link #width} and {@link #height} properties.
|
||||
*
|
||||
* Sample code:
|
||||
* Example:
|
||||
* <pre>
|
||||
* // Create a size that is 10pt wide and 5pt high
|
||||
* var size = new Size(10, 5);
|
||||
|
|
|
@ -286,7 +286,7 @@ var Color = this.Color = Base.extend(new function() {
|
|||
/**
|
||||
* Returns the type of the color as a string.
|
||||
*
|
||||
* Sample code:
|
||||
* Example:
|
||||
* <code>
|
||||
* var color = new RGBColor(1, 0, 0);
|
||||
* console.log(color.type); // 'rgb'
|
||||
|
|
|
@ -54,7 +54,7 @@ var PathStyle = this.PathStyle = Base.extend(new function() {
|
|||
* {@link Item#style}. This is a convenient way to define a style once and
|
||||
* apply it to a series of items:
|
||||
*
|
||||
* Sample Code:
|
||||
* Example:
|
||||
* <pre>
|
||||
* var circleStyle = {
|
||||
* fillColor: new RGBColor(1, 0, 0),
|
||||
|
|
|
@ -34,7 +34,7 @@ var ParagraphStyle = this.ParagraphStyle = Base.extend({
|
|||
* {@link #justification} property. Yet, we have lots in store for Paper.js
|
||||
* when it comes to typography. Please stay tuned.
|
||||
*
|
||||
* Sample code:
|
||||
* Example:
|
||||
* <pre>
|
||||
* var text = new PointText(new Point(0,0));
|
||||
* text.fillColor = 'black';
|
||||
|
|
Loading…
Reference in a new issue