Skip to content

Instantly share code, notes, and snippets.

View calxdesign's full-sized avatar

David Wilson calxdesign

View GitHub Profile
@calxdesign
calxdesign / Viridis
Created January 23, 2019 11:17
Simple Viridis Function for Processing
final float[][] viridis_chart = new float[][] { { 0.267004f, 0.004874f, 0.329415f }, { 0.268510f, 0.009605f, 0.335427f }, { 0.269944f, 0.014625f, 0.341379f }, { 0.271305f, 0.019942f, 0.347269f }, { 0.272594f, 0.025563f, 0.353093f }, { 0.273809f, 0.031497f, 0.358853f }, { 0.274952f, 0.037752f, 0.364543f }, { 0.276022f, 0.044167f, 0.370164f }, { 0.277018f, 0.050344f, 0.375715f }, { 0.277941f, 0.056324f, 0.381191f }, { 0.278791f, 0.062145f, 0.386592f }, { 0.279566f, 0.067836f, 0.391917f }, { 0.280267f, 0.073417f, 0.397163f }, { 0.280894f, 0.078907f, 0.402329f }, { 0.281446f, 0.084320f, 0.407414f }, { 0.281924f, 0.089666f, 0.412415f }, { 0.282327f, 0.094955f, 0.417331f }, { 0.282656f, 0.100196f, 0.422160f }, { 0.282910f, 0.105393f, 0.426902f }, { 0.283091f, 0.110553f, 0.431554f },
{ 0.283197f, 0.115680f, 0.436115f }, { 0.283229f, 0.120777f, 0.440584f }, { 0.283187f, 0.125848f, 0.444960f }, { 0.283072f, 0.130895f, 0.449241f }, { 0.282884f, 0.135920f, 0.453427f }, { 0.282623f, 0.140926f, 0.457517f }, { 0.2822