类 TextureFilter

    • 字段详细资料

      • amount

        public float amount
      • turbulence

        public float turbulence
      • gain

        public float gain
      • bias

        public float bias
      • operation

        public int operation
    • 构造器详细资料

      • TextureFilter

        public TextureFilter()
    • 方法详细资料

      • setAmount

        public void setAmount​(float amount)
        Set the amount of texture.
        参数:
        amount - the amount min-value 0 max-value 1
        另请参阅:
        getAmount()
      • getAmount

        public float getAmount()
        Get the amount of texture.
        返回:
        the amount
        另请参阅:
        setAmount(float)
      • setFunction

        public void setFunction​(Function2D function)
      • setOperation

        public void setOperation​(int operation)
      • getOperation

        public int getOperation()
      • setScale

        public void setScale​(float scale)
        Specifies the scale of the texture.
        参数:
        scale - the scale of the texture. min-value 1 max-value 300+
        另请参阅:
        getScale()
      • getScale

        public float getScale()
        Returns the scale of the texture.
        返回:
        the scale of the texture.
        另请参阅:
        setScale(float)
      • setStretch

        public void setStretch​(float stretch)
        Specifies the stretch factor of the texture.
        参数:
        stretch - the stretch factor of the texture. min-value 1 max-value 50+
        另请参阅:
        getStretch()
      • getStretch

        public float getStretch()
        Returns the stretch factor of the texture.
        返回:
        the stretch factor of the texture.
        另请参阅:
        setStretch(float)
      • setAngle

        public void setAngle​(float angle)
        Specifies the angle of the texture.
        参数:
        angle - the angle of the texture.
        另请参阅:
        getAngle()
      • getAngle

        public float getAngle()
        Returns the angle of the texture.
        返回:
        the angle of the texture.
        另请参阅:
        setAngle(float)
      • setTurbulence

        public void setTurbulence​(float turbulence)
        Specifies the turbulence of the texture.
        参数:
        turbulence - the turbulence of the texture. min-value 0 max-value 1
        另请参阅:
        getTurbulence()
      • getTurbulence

        public float getTurbulence()
        Returns the turbulence of the texture.
        返回:
        the turbulence of the texture.
        另请参阅:
        setTurbulence(float)
      • setColormap

        public void setColormap​(Colormap colormap)
        Set the colormap to be used for the filter.
        参数:
        colormap - the colormap
        另请参阅:
        getColormap()
      • filterRGB

        public int filterRGB​(int x,
                             int y,
                             int rgb)
        指定者:
        filterRGB 在类中 PointFilter