Question: Can plot plot with colorfunctions

I am looking for something similar to color functions of plot3D. plot.options is directing me to plot,color where I cannot find an example. I tried

plot(floor(x),x=-3..3,color=floor(x))

Error, (in plot) invalid color specification: floor(x)
Please Wait...