Closed nodename closed 11 years ago
Hi, you need to use the vectorised version of lerp, called vlerp:
(defn x-gradient
([a b]
(clisk.functions/vlerp a b x)))
(show (x-gradient 0 1))
lerp itself is just a utility function that works on scalars
Thanks! ... I don't find vlerp in the source on github...
should be just below lerp in functions.clj
I need to document some of this stuff better :-)
Sorry I was looking at the wrong clisk version in git! Latest version should use lerp
Hello Mike I am studying the library and through rough pattern-matching on existing code without much understanding I have come up with
which I have stuck into my copy of clisk.patterns.clj.
Could you please comment on whether this is at all correct (image looks a bit off) and what would be the right thing to do?
Thanks!