类 GrayscaleColormap

  • 所有已实现的接口:
    Colormap

    public class GrayscaleColormap
    extends Object
    implements Colormap
    A grayscale colormap. Black is 0, white is 1.
    • 构造器详细资料

      • GrayscaleColormap

        public GrayscaleColormap()
    • 方法详细资料

      • getColor

        public int getColor​(float v)
        Convert a value in the range 0..1 to an RGB color.
        指定者:
        getColor 在接口中 Colormap
        参数:
        v - a value in the range 0..1
        返回:
        an RGB color