Skip to content

Commit

Permalink
Docs: Improve Color page. (#25577)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Feb 27, 2023
1 parent a556f81 commit 355ce7c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/api/en/math/Color.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ <h3>[method:Object getHSL]( [param:Object target], [param:string colorSpace] = L

</p>

<h3>[method:Color getRGB]( [param:Color target], [param:string colorSpace] = SRGBColorSpace )</h3>
<p>
[page:Color target] — the result will be copied into this object.<br /><br />

Returns the RGB values of this color as an instance of [page:Color].
</p>

<h3>[method:String getStyle]( [param:string colorSpace] = SRGBColorSpace )</h3>
<p>Returns the value of this color as a CSS style string. Example: `rgb(255,0,0)`.</p>

Expand Down
7 changes: 7 additions & 0 deletions docs/api/it/math/Color.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ <h3>[method:Object getHSL]( [param:Object target], [param:string colorSpace] = L

</p>

<h3>[method:Color getRGB]( [param:Color target], [param:string colorSpace] = SRGBColorSpace )</h3>
<p>
[page:Color target] - questo risultato sarà copiato in questo oggetto.<br /><br />

Returns the RGB values of this color as an instance of [page:Color].
</p>

<h3>[method:String getStyle]( [param:string colorSpace] = SRGBColorSpace )</h3>
<p>Restituisce il valore di questo colore come una stringa CSS style. Esempio: `rgb(255,0,0)`.</p>

Expand Down
7 changes: 7 additions & 0 deletions docs/api/zh/math/Color.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ <h3>[method:Object getHSL]( [param:Object target], [param:string colorSpace] = L

</p>

<h3>[method:Color getRGB]( [param:Color target], [param:string colorSpace] = SRGBColorSpace )</h3>
<p>
[page:Color target] - 结果将复制到这个对象中.<br /><br />

Returns the RGB values of this color as an instance of [page:Color].
</p>

<h3>[method:String getStyle]( [param:string colorSpace] = SRGBColorSpace )</h3>
<p>以CSS样式字符串的形式返回该颜色的值。例如:“rgb(255,0,0)”。</p>

Expand Down

0 comments on commit 355ce7c

Please sign in to comment.