Color Map

Set geometry color attributes with vex code based on an image.

A .vfl that allows you to set color attributes by an image's values.

Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Wednesday July 30th, 2008 12:22 AM

* Author: Dan Lynch

#pragma hint path file
#pragma hint uv hidden

        float d 0.1;
        int samples=10;
        string path "Mandril.pic";
        export vector uv 0;

        float u getcomp(uv,0);
        float V getcomp(uv,1);
        Cd =  vector (colormap(path,ddddddddsamples"filter""gaussian"));


Download: color_map.vfl 442 B

Please login or Click Here to register for downloads
Creative Commons License
Color Map by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at
Permissions beyond the scope of this license may be available at