Beispiel #1
0
 private void reset()
 {
     brush       = null;
     brushSize   = 0;
     brushPath   = null;
     initialized = false;
 }
Beispiel #2
0
        public void BeginBrushpath(Vector2 pos, IConvolutionPlugin pluginBrush, int size, float strenght, float fade)
        {
            brushStrenght = strenght;
            brushFade     = fade;
            brush         = pluginBrush;
            if (brushSize != size)
            {
                brushSize = size;
                brushmask = layUtils.GetQuarterFadedCircle(size, fade, interpolation);
            }
            brushPath = new List <Vector2>()
            {
                pos
            };
            brush.InitializeKernelMatrix(brushSize);

            //immediate update
            UpdateBrushPath(pos);
        }