I’m pretty certain the color ramp’s functionality has been slightly tweaked over the years (since this video was recorded). However I’m still able to accomplish the goal the same way with Blender 3.4.1:

NOTE: Eevee will show a stepping pattern but Cycles will render smooth.