diff options
author | simulation <simulation@nlo-ext3.ioq.uni-jena.de> | 2016-02-09 09:54:46 +0100 |
---|---|---|
committer | simulation <simulation@nlo-ext3.ioq.uni-jena.de> | 2016-02-09 09:54:46 +0100 |
commit | 6be0f285adb27f60f058c2937a7885899e17cb88 (patch) | |
tree | be50a15314fe28c5b7b8f721233a34e71ca5b3b4 /idl/idl_inverted_grey_table.pro | |
download | lpic-6be0f285adb27f60f058c2937a7885899e17cb88.tar.xz |
Diffstat (limited to 'idl/idl_inverted_grey_table.pro')
-rw-r--r-- | idl/idl_inverted_grey_table.pro | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/idl/idl_inverted_grey_table.pro b/idl/idl_inverted_grey_table.pro new file mode 100644 index 0000000..6b0c6a8 --- /dev/null +++ b/idl/idl_inverted_grey_table.pro @@ -0,0 +1,16 @@ +pro idl_inverted_grey_table + + max = 255 + + r = findgen(max+1) + g = findgen(max+1) + + for i=1, max do begin + g(i) = max * ( 1 - r(i)/max ) + endfor + + g(0) = 255 + + tvlct, g, g, g + +end
\ No newline at end of file |