net.sourceforge.jiu.color.dithering

Class RoundSpotFunction

Implemented Interfaces:
SpotFunction

public class RoundSpotFunction
extends java.lang.Object
implements SpotFunction

A round spot function.
Author:
Marco Schmidt
Since:
0.9.0
See Also:
ClusteredDotDither

Method Summary

double
compute(double x, double y)
Compute the spot intensity at the given position.
boolean
isBalanced()
Returns if this spot function is balanced.

Method Details

compute

public double compute(double x,
                      double y)
Compute the spot intensity at the given position.
Specified by:
compute in interface SpotFunction
Parameters:
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)
Returns:
the function value, must be between 0.0 and 1.0 (including both)

isBalanced

public boolean isBalanced()
Returns if this spot function is balanced.
Specified by:
isBalanced in interface SpotFunction