Skip to content

Commit

Permalink
GLOBAL: colour => color
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Sierra committed Oct 10, 2013
1 parent ea74a41 commit 014026e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
* Element.getSubpath
[ method ]
**
* Returns subpath of a given element from given start and end lengths (only works for `path` elements)
* Returns subpath of a given element from given start and end lengths (only works for `path` elements)
**
- from (number) length, in pixels, from the start of the path to the start of the segment VERIFY
- to (number) length, in pixels, from the start of the path to the end of the segment VERIFY
Expand Down
28 changes: 14 additions & 14 deletions src/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ function Matrix(a, b, c, d, e, f) {
* Matrix.x
[ method ]
**
* Returns x coordinate for given point after transformation described by the matrix. See also @Matrix.y
* Returns x coordinate for given point after transformation described by the matrix. See also @Matrix.y
- x (number)
- y (number)
= (number) x
Expand All @@ -500,7 +500,7 @@ function Matrix(a, b, c, d, e, f) {
* Matrix.y
[ method ]
**
* Returns y coordinate for given point after transformation described by the matrix. See also @Matrix.x
* Returns y coordinate for given point after transformation described by the matrix. See also @Matrix.x
- x (number)
- y (number)
= (number) y
Expand Down Expand Up @@ -582,7 +582,7 @@ function Matrix(a, b, c, d, e, f) {
* Matrix.toTransformString
[ method ]
**
* Returns transform string that represents given matrix
* Returns transform string that represents given matrix
= (string) transform string
\*/
matrixproto.toTransformString = function (shorter) {
Expand Down Expand Up @@ -623,12 +623,12 @@ Snap.Matrix = Matrix;
* Snap.getRGB
[ method ]
**
* Parses colour string as RGB object
- colour (string) colour string in one of the following formats:
* Parses color string as RGB object
- color (string) color string in one of the following formats:
# <ul>
# <li>Colour name (<code>red</code>, <code>green</code>, <code>cornflowerblue</code>, etc)</li>
# <li>#••• — shortened HTML colour: (<code>#000</code>, <code>#fc0</code>, etc.)</li>
# <li>#•••••• — full length HTML colour: (<code>#000000</code>, <code>#bd2300</code>)</li>
# <li>#••• — shortened HTML color: (<code>#000</code>, <code>#fc0</code>, etc.)</li>
# <li>#•••••• — full length HTML color: (<code>#000000</code>, <code>#bd2300</code>)</li>
# <li>rgb(•••, •••, •••) — red, green and blue channels values: (<code>rgb(200,&nbsp;100,&nbsp;0)</code>)</li>
# <li>rgba(•••, •••, •••, •••) — also with opacity</li>
# <li>rgb(•••%, •••%, •••%) — same as above, but in %: (<code>rgb(100%,&nbsp;175%,&nbsp;0%)</code>)</li>
Expand Down Expand Up @@ -735,11 +735,11 @@ Snap.getRGB = cacher(function (colour) {
* Snap.hsb
[ method ]
**
* Converts HSB values to a hex representation of the colour
* Converts HSB values to a hex representation of the color
- h (number) hue
- s (number) saturation
- b (number) value or brightness
= (string) hex representation of the colour
= (string) hex representation of the color
\*/
Snap.hsb = cacher(function (h, s, b) {
return Snap.hsb2rgb(h, s, b).hex;
Expand All @@ -748,11 +748,11 @@ Snap.hsb = cacher(function (h, s, b) {
* Snap.hsl
[ method ]
**
* Converts HSL values to a hex representation of the colour
* Converts HSL values to a hex representation of the color
- h (number) hue
- s (number) saturation
- l (number) luminosity
= (string) hex representation of the colour
= (string) hex representation of the color
\*/
Snap.hsl = cacher(function (h, s, l) {
return Snap.hsl2rgb(h, s, l).hex;
Expand All @@ -761,11 +761,11 @@ Snap.hsl = cacher(function (h, s, l) {
* Snap.rgb
[ method ]
**
* Converts RGB values to a hex representation of the colour
* Converts RGB values to a hex representation of the color
- r (number) red
- g (number) green
- b (number) blue
= (string) hex representation of the colour
= (string) hex representation of the color
\*/
Snap.rgb = cacher(function (r, g, b, o) {
if (is(o, "finite")) {
Expand Down Expand Up @@ -1774,7 +1774,7 @@ function arrayFirstValue(arr) {
* Element.asPX
[ method ]
**
* Returns given attribute of the element as a `px` value (not %, em, etc.)
* Returns given attribute of the element as a `px` value (not %, em, etc.)
**
- attr (string) attribute name
- value (string) #optional attribute value
Expand Down

0 comments on commit 014026e

Please sign in to comment.