fn smooth_circle (&mut self, x: i32, y:i32, size: u32, color: Color) {
        //let mut sb= orbimage::Image::from_color(2*size, 2*size, Color::rgba(255,255,255,0));
        let sb = orbimage::Image::from_path("smooth_circle_black.png").unwrap();
        let rb = sb.resize(size, size, ResizeType::Lanczos3).unwrap();
        
        let r = color.r();
        let g = color.g();
        let b = color.b();
        let a = color.a();
        
        
        /*
        for n in 0..size {
            //sb.circle(size as i32 , size as i32 , ((size -n) as i32), Color::rgba(r,g,b,(2*n) as u8));
            sb.pixel(n as i32,n as i32, Color::rgba(r,g,b,(4*n)as u8)); //Does NOT work as intended!!
            //sb.pixel(n as i32,n as i32, Color::rgba(r,g,b,(4*n)as u8));
        }
        */
        //self.paste_selection(x,y,80,sb);
        self.image(x,y,rb.width(),rb.height(),rb.data());
        //println!("{:?}",sb.data());
        
    }
//experimental smooth brush : work in progress....
experimental smooth brush : work in progress
experimental smooth brush : work in progress
fn smooth_circle (&mut self, x: i32, y:i32, size: u32, color: Color) {
        //let mut sb= orbimage::Image::from_color(2*size, 2*size, Color::rgba(255,255,255,0));
        let sb = orbimage::Image::from_path("smooth_circle_black.png").unwrap();
        let rb = sb.resize(size, size, ResizeType::Lanczos3).unwrap();
        let r = color.r();
        let g = color.g();
        let b = color.b();
        let a = color.a();
        /*
        for n in 0..size {
            //sb.circle(size as i32 , size as i32 , ((size -n) as i32), Color::rgba(r,g,b,(2*n) as u8));
            sb.pixel(n as i32,n as i32, Color::rgba(r,g,b,(4*n)as u8)); //Does NOT work as intended!!
            //sb.pixel(n as i32,n as i32, Color::rgba(r,g,b,(4*n)as u8));
        }
        */
        //self.paste_selection(x,y,80,sb);
        self.image(x,y,rb.width(),rb.height(),rb.data());
        //println!("{:?}",sb.data());
    }
fn smooth_circle ( & mut self , x : i32 , y : i32 , size : u32 , color : Color ) { //let mut sb= orbimage::Image::from_color(2*size, 2*size, Color::rgba(255,255,255,0)); let sb = orbimage :: Image :: from_path ( " " ) . unwrap ( ) ; let rb = sb . resize ( size , size , ResizeType :: Lanczos3 ) . unwrap ( ) ; let r = color . r ( ) ; let g = color . g ( ) ; let b = color . b ( ) ; let a = color . a ( ) ; /*
        for n in 0..size {
            //sb.circle(size as i32 , size as i32 , ((size -n) as i32), Color::rgba(r,g,b,(2*n) as u8));
            sb.pixel(n as i32,n as i32, Color::rgba(r,g,b,(4*n)as u8)); //Does NOT work as intended!!
            //sb.pixel(n as i32,n as i32, Color::rgba(r,g,b,(4*n)as u8));
        }
        */ //self.paste_selection(x,y,80,sb); self . image ( x , y , rb . width ( ) , rb . height ( ) , rb . data ( ) ) ; //println!("{:?}",sb.data()); }
experimental smooth brush : work in progress....
experimental smooth brush : work in progress ....
&mut self
x
i32
y
i32
size
u32
color
Color
&mut self
x
i32
y
i32
size
u32
color
Color