net.sourceforge.jiu.color.dithering
Class DiamondSpotFunction
java.lang.Objectnet.sourceforge.jiu.color.dithering.DiamondSpotFunction
- SpotFunction
public class DiamondSpotFunction
extends java.lang.Object
A diamond spot function.
double | compute(double x, double y)- Compute the spot intensity at the given position.
|
boolean | isBalanced()- Returns if this spot function is balanced.
|
compute
public double compute(double x,
double y) Compute the spot intensity at the given position.
- compute in interface SpotFunction
x - horizontal position, must be between -1.0 and 1.0 (including both)y - vertical position, must be between -1.0 and 1.0 (including both)
- the function value, must be between 0.0 and 1.0 (including both)
isBalanced
public boolean isBalanced()
Returns if this spot function is balanced.
- isBalanced in interface SpotFunction