I want to insert a line shape and have the color and weight of that line be controlled by a value of a cell

for example of cell A1 is =1 then the line would be green and fat
if i change the value of Cell A1 to =2 then the line would turn to black and shinny

any way to do this?