Comment by vidarh

1 month ago

If you anticipate that need, you just store the gradient as an array of strings, and you still then only need a trivial lookup.