Code Sketch


diya
By: Vishwanath Suresh Pai
Category: Programming
cleari()
showAxes()

def shape =
    Picture.fromPath { x =>
        x.moveTo(0,0)
        x.arc(0,150,80)
          x.arc(0,0,80)
                   
//        x.lineTo(0, 150)
//        x.lineTo(150, 150)
//        x.lineTo(150, 0)
//        x.closePath()
    }
    def shape1 =
    Picture.fromPath { x =>
        x.moveTo(0,0)
            x.arc(-150,0,-50)
            x.arc(150,0,180)
            x.arc(0,0,-50)
        

    }
    shape.thatsFilledWith(orange).draw
    shape1.thatsFilledWith(brown).draw