[ 
https://issues.apache.org/jira/browse/IMAGING-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebb updated IMAGING-148:
-------------------------
    Description: 
There should be methods for creating a new color based on an existing instance 
but with one component changed.

Example:

{code:java}
ColorCmyk cyan = new ColorCymk(100, 0, 0, 0);
ColorCmyk lime = cyan.withYellow(100);
assertEquals(lime.C, 100);
assertEquals(lime.Y, 100);
{code}

  was:
Sehr should be methods for creating a new color based on an existing instance 
but with one component changed.

Example:

{code:java}
ColorCmyk cyan = new ColorCymk(100, 0, 0, 0);
ColorCmyk lime = cyan.withYellow(100);
assertEquals(lime.C, 100);
assertEquals(lime.Y, 100);
{code}


> Add methods for deriving colors from another
> --------------------------------------------
>
>                 Key: IMAGING-148
>                 URL: https://issues.apache.org/jira/browse/IMAGING-148
>             Project: Commons Imaging
>          Issue Type: Improvement
>          Components: imaging.color.*
>            Reporter: Benedikt Ritter
>             Fix For: Patch Needed
>
>
> There should be methods for creating a new color based on an existing 
> instance but with one component changed.
> Example:
> {code:java}
> ColorCmyk cyan = new ColorCymk(100, 0, 0, 0);
> ColorCmyk lime = cyan.withYellow(100);
> assertEquals(lime.C, 100);
> assertEquals(lime.Y, 100);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to