Skip to content

widdowquinn/ColorSpiral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#README.md - ColorSpiral.py

#NOTE: This repository is now FROZEN and will not receive further development. For further details, see below.

The ColorSpiral module was incorporated into Biopython as of its 1.61 release. Further development of the code will now continue there. Please make all pull requests against the latest version of the code in the Biopython GitHub repository, at https://github.com/biopython/biopython

## Links

Overview

ColorSpiral.py is code to define a spiral in HSV colour space, and select colours along that spiral. The idea is that such colours will be - for small numbers of colours - particularly distinguishable from each other. Where large numbers of colours are chosen, it can help to use a brightness jitter.

This code was eventually contributed to Biopython as Bio.Graphics.ColorSpiral, but was provided as an early release in this form to accompany a blog post at http://armchairbiology.blogspot.com/.

Usage

The test script test_ColorSpiral.py provides example usage and output.

  1. A square with jittered colours "A square with jittered colours."

  2. A spiral indicating the locations of the chosen colours in HSV space: "A spiral of selected colours."

License

Except where otherwise noted, the example programs and other software provided here are made available under the OSI-approved MIT License.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Module to select colours automatically from a spiral in HSV colour space

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages