Package ca.grimoire.jnoise.palettes

Examples of ca.grimoire.jnoise.palettes.CorrectedMonochrome


    }

    double average = total / (height * width);
    double gamma = (average - min) / (max - average);

    Palette palette = new CorrectedMonochrome (min, max, gamma);

    for (int row = 0; row < height; ++row) {
      for (int col = 0; col < width; ++col) {
        Color color = palette.getColor (samples[row][col]);
        g.setColor (color);
        g.drawLine (col, row, col, row); // putpixel
      }
    }

View Full Code Here

TOP

Related Classes of ca.grimoire.jnoise.palettes.CorrectedMonochrome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.