Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-148

Add methods for deriving colors from another

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Patch Needed
    • Component/s: imaging.color.*
    • Labels:
      None

      Description

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

      Example:

      ColorCmyk cyan = new ColorCymk(100, 0, 0, 0);
      ColorCmyk lime = cyan.withYellow(100);
      assertEquals(lime.C, 100);
      assertEquals(lime.Y, 100);
      

        Attachments

        1. IMAGING-148_001.patch
          21 kB
          Stephan Köninger

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                britter Benedikt Ritter
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: