How can I convert the amplitude of sin(x)+1 to grayscale and plot?
See if you can adjust this to get closer to what you want
DensityPlot[Sin[x]+1,{x,0,3Pi},{y,0,Pi},ColorFunction->GrayLevel,PlotPoints->100]
Yes, it works now. Thank you Bill for helping.