Rendering surfaces
clojurecivitas.github.io·1w
Flag this post

surfaces


Scope

I want to present an idea of rendering 3D surfaces derived from vector fields. It’s one of the algorithms I used in my math art folds2d project.

What do we need

We will rely on methods implemented in clojure2d and fastmath libraries.

Let’s require the following namespaces:

  • clojure2d.core, c2d - 2D drawing
  • clojure2d.color, c - colors, palettes and gradients
  • clojure2d.pixels, p - pixel manipulation and rendering
  • clojure2d.extra.utils, utls - gradient viewer
  • fastmath.core, m - primitive math
  • fastmath.vectors, v - primitive 2D, 3D and 4D vectors
  • fastmath.random, r - randomness and noise
  • `fastmath.fie…

Similar Posts

Loading similar posts...