Package processing.core

Examples of processing.core.PApplet.brightness()


    // distCoord.z = (float) Math.sin(distCoord.x * 1.1f) * 5f;
    // Perlin Noise
    // distCoord.z = PApplet.sin(p.frameCount / 20f) * p.noise(distCoord.x, distCoord.y) * 50 -
    // 25;

    float brightness = p.brightness(col);
    float z = PApplet.map(brightness, 0, 255, -1, 1);
    // PApplet.println(col + ". " + brightness + "," + z);
    distCoord.z = z * PApplet.sin(p.frameCount / 20f) * 50;
  }

 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.