Skip to content

Instantly share code, notes, and snippets.

@gramian gramian/antijet.m
Created Sep 22, 2014

What would you like to do?
Antijet Colormap
function m = antijet(n)
% antijet colormap
% by Christian Himpe 2014
% released under BSD 2-Clause License ( )
if(nargin<1 || isempty(n)), n = 256; end;
L = linspace(0,1,n);
R = -0.5*sin( L*(1.37*pi)+0.13*pi )+0.5;
G = -0.4*cos( L*(1.5*pi) )+0.4;
B = 0.3*sin( L*(2.11*pi) )+0.3;
m = [R;G;B]';

This comment has been minimized.

Copy link
Owner Author

gramian commented Oct 15, 2014

Antijet Preview


This comment has been minimized.

Copy link

E3V3A commented Mar 25, 2019

How did you generate that ^ plot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.