|
|
|
@ -23,13 +23,13 @@ showFullContent: false
|
|
|
|
|
- Scale those integers into an 8-bit unsigned space
|
|
|
|
|
## The Implementation
|
|
|
|
|
### Hashing
|
|
|
|
|
{{< highlight go > }}
|
|
|
|
|
{{</ highlight > }}
|
|
|
|
|
{{< highlight go >}}
|
|
|
|
|
{{</ highlight >}}
|
|
|
|
|
### Interpolation
|
|
|
|
|
- Not sure if interpolation is the right technical term
|
|
|
|
|
- Using generics
|
|
|
|
|
{{< highlight go > }}
|
|
|
|
|
{{</ highlight > }}
|
|
|
|
|
{{< highlight go >}}
|
|
|
|
|
{{</ highlight >}}
|
|
|
|
|
## The Results
|
|
|
|
|
Below is a sample of "lorem ipsum" with each word colored using this algorithm.
|
|
|
|
|
|
|
|
|
|