Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Feb 27, 2023

Fixed #25571.

Description

Adds getRGB() to the Color docs.

@Mugen87 Mugen87 added this to the r151 milestone Feb 27, 2023
@Mugen87 Mugen87 merged commit 355ce7c into mrdoob:dev Feb 27, 2023
@Mugen87
Copy link
Collaborator Author

Mugen87 commented Feb 27, 2023

@donmccurdy When the colorSpace parameter was added in #23392, only the signature of the Color methods were updated in the docs. The parameter itself has no description. For example getHSL() is currently documented like so:

<h3>[method:Object getHSL]( [param:Object target], [param:string colorSpace] = LinearSRGBColorSpace )</h3>
<p>
[page:Object target] — the result will be copied into this Object. Adds h, s and l keys to the object (if not already present).<br /><br />

But it should be something like:

<h3>[method:Object getHSL]( [param:Object target], [param:string colorSpace] = LinearSRGBColorSpace )</h3> 
 <p> 
 	[page:Object target] — the result will be copied into this Object. Adds h, s and l keys to the object (if not already present).<br />
 	[page:String colorSpace] — ???. Default is `LinearSRGBColorSpace`.<br /><br />

How should we document colorSpace?

@Methuselah96 Methuselah96 mentioned this pull request Apr 25, 2023
37 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing Docs: Color.getRGB

1 participant