Browse Source

Docs: Improve Color page. (#25577)

Michael Herzog 2 years ago
parent
commit
355ce7c3f8
3 changed files with 21 additions and 0 deletions
  1. 7 0
      docs/api/en/math/Color.html
  2. 7 0
      docs/api/it/math/Color.html
  3. 7 0
      docs/api/zh/math/Color.html

+ 7 - 0
docs/api/en/math/Color.html

@@ -184,6 +184,13 @@ const color7 = new THREE.Color( 1, 0, 0 );
 
 		</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>
 

+ 7 - 0
docs/api/it/math/Color.html

@@ -181,6 +181,13 @@ const color7 = new THREE.Color( 1, 0, 0 );
 
 		</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>
 

+ 7 - 0
docs/api/zh/math/Color.html

@@ -182,6 +182,13 @@
 
 		</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>