001    /*
002     * RoundSpotFunction
003     * 
004     * Copyright (c) 2002, 2003 Marco Schmidt.
005     * All rights reserved.
006     */
007    
008    package net.sourceforge.jiu.color.dithering;
009    
010    import net.sourceforge.jiu.color.dithering.SpotFunction;
011    
012    /**
013     * A round spot function.
014     * @author Marco Schmidt
015     * @since 0.9.0
016     * @see ClusteredDotDither
017     */
018    public class RoundSpotFunction implements SpotFunction
019    {
020            public double compute(double x, double y)
021            {
022                    return 1.0 - x * x - y * y;
023            }
024    
025            public boolean isBalanced()
026            {
027                    return false;
028            }
029    }