|
|
hi,
"Bald Eagle" <cre### [at] netscapenet> wrote:
> > how does/would distance relate to colour?
> 3.6.1.1.2 Color Map
I thought (think) of a colour map as 1D, so not sure how that relates ("maps")
to 2D, however..
> I suppose if the Hilbert curve is a "curve" that is continuous function and can
> go from a value to a 2D coordinate, then perhaps there is the inverse of the
> function that can go from 2D coordinates to the 0-1 values in a color map.
there is. example code on https://en.wikipedia.org/wiki/Hilbert_curve.
interestingly, the animated gif in the top right of that page is "coloured in".
is that similar to what you're thinking of?
> I was guessing you were much more well versed in the topic and would have some
> idea as to how to implement it.
heh. I wouldn't know maths if it came and bit me. the 'hilbert2d' utility is
just a "wrapper" around the code taken from that wiki page.
the output of the 'xy2d()' code could be scaled to the 0..1 range. would that
do the trick?
regards, jr.
Post a reply to this message
|
|