colormap: Returns an RGB tuple on a 0 to 255 scale for graphical packages

Category: Python - Miscellaneous

These functions, when given a magnitude 'mag' between cmin and cmax, return
a colour tuple (red, green, blue) on a 0 to 255 scale. The tuple can consist of strings
(strRgb) as required in Tk calls, or integers (rgb) as required in Java applications. Date: 13 March, 2012


Graphics

Homepage: http://code.activestate.com/recipes/52273-colormap-returns-an-rgb-tuple-on-a-0-to-255-scale-/?in=lang-python

Developer: Alexander Pletzer

License: Python License

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

QuakeForge is a set of 3D graphics game engines based on id Software's legendary Quake series of game engines.

developer Developer: quakeforge
license License: GNU Lesser General Public License (LGPL)
operating systems Operating System: All 32-bit MS Windows (95/98/NT/2000/XP), All POSIX (Linux/BSD/UNIX-like OSes), Linux, Other


Warrior Arena is a modular game using ASCII graphics (NCurses) in which the player controls a team of fighters to fight battles.

developer Developer: warena-game
license License: MIT/X Consortium License
operating systems Operating System: All 32-bit MS Windows (95/98/NT/2000/XP), All POSIX (Linux/BSD/UNIX-like OSes)


An advanced graphics library for JavaScript to draw curves and beziers along with the basic shapes like line, circle, rectangle, polygon, ellipse, arc etc.

developer Developer: Sameer
license License: GNU Lesser General Public License (LGPL)
operating systems Operating System: All


Elite media line is a powerful script written the PHP scripting language designed for sites of all sizes and types.

developer Developer: Elitesuite.info
license License: PHP License
operating systems Operating System: Unix, Win


Background resizer class can be used to display high resolution images as background for websites.

developer Developer: Arturs Sosins
license License: BSD License
operating systems Operating System: Not Available


Color manager class accepts different color formats like:

* Named colors (like green),
* Hex (like #fff or #ffffff or ffffff),
* RGB (like rgb(255,255,255)),
* RGB alpha (like rgba(255,255,255,1)),
* HSL (like hsl(360,100,100)),
* HSL alpha (like hsla(360,100,100,1)).

developer Developer: Arturs Sosins
license License: BSD License
operating systems Operating System: Not Available


Easy Chart class helps to generate charts using HTML5 canvas.

developer Developer: Arturs Sosins
license License: BSD License
operating systems Operating System: Not Available


This code is part of MoinMoin (http://moin.

developer Developer: Jurgen Hermann
license License: Python License
operating systems Operating System: Windows


Python does not automatically call the __init__ (and __del__) methods of superclasses if subclasses define their own; explicit calling is needed, and it may be advisable to use a call-if-it-exists idiom.

developer Developer: Alex Martelli
license License: Python License
operating systems Operating System: Windows