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

Add methods for deriving colors from another

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Patch Needed
    • imaging.color.*
    • 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

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

              Dates

                Created:
                Updated: