TURBO MODE To convert from HSV to RGB, scratch uses linear models to determine the colors from the hue, then maps it to the RGB colorspace with no view transform. The one I implemented here uses a sinusoidal model to determine the colors from the hue, and then uses a gamma transform to transform to sRGB colorspace (this is because sRGB monitors display light as if it was raised to the power of 2, since we see clear rounding errors in dark colors, but don't in light colors, since our eyes interpret light logarithmically)
Observations – in scratch's, you can see rectangles / lines, on mine, you can see -|cos(x)| and a little fragment of a curve that abruptly goes downward at rgb(0, 0, 255) blue.