Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
255 views
1
*** ReadMe for ColorPy 0.1.0. ***
2
3
ColorPy is a Python package that can convert physical descriptions of light -
4
spectra of light intensity vs. wavelength - into RGB colors that can
5
be drawn on a computer screen.
6
It provides a nice set of attractive plots that you can make of such
7
spectra, and some other color related functions as well.
8
9
Unpacking the Distribution:
10
11
The instruction depend on if you are using Windows or Linux.
12
If you are using Windows, you can use the binary distribution executable,
13
and all you need to do is run that. Otherwise...
14
15
Windows -
16
17
Unzip the .zip distribution. Recent versions of Windows (XP or later),
18
will unpack the directory automatically, you can simply enter the
19
directory in Windows Explorer. You will probably need to copy the
20
uncompressed files into another directory.
21
22
Linux -
23
24
The distribution is a compressed tar archive, uncompress it as follows:
25
26
gunzip -c colorpy-0.1.0.tar.gz | tar xf -
27
cd colorpy-0.1.0
28
29
Installation:
30
31
To install ColorPy from the source distributions (.zip on Windows,
32
or .tar.gz on Linux) you must first unpack the distribution.
33
34
Then, from the directory in which the files are unpacked, run:
35
36
python setup.py install
37
38
It is possible that you may need to supply a path to the Python executable.
39
You also probably will need administrator privileges to do this.
40
41
This should complete the installation.
42
43
If you are installing from the Windows binary distribution (.win32.exe),
44
then all you need to do is run that executable and follow the prompts.
45
46
After installation, I recommend that you run the test cases.
47
In the Python interpreter, do:
48
49
import colorpy.test
50
colorpy.test.test()
51
52
This should run several test cases.
53
As an additional (and more interesting) test, create the sample figures:
54
55
import colorpy.figures
56
colorpy.figures.figures()
57
58
This should create a number of plot files (typically .png files) in
59
the current directory. These will include all of the plots in the HTML
60
documentation, as well as several others.
61
62
License:
63
64
Copyright (C) 2008 Mark Kness
65
66
Author - Mark Kness - [email protected]
67
68
This file is part of ColorPy.
69
70
ColorPy is free software: you can redistribute it and/or modify
71
it under the terms of the GNU Lesser General Public License as
72
published by the Free Software Foundation, either version 3 of
73
the License, or (at your option) any later version.
74
75
ColorPy is distributed in the hope that it will be useful,
76
but WITHOUT ANY WARRANTY; without even the implied warranty of
77
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
78
GNU Lesser General Public License for more details.
79
80
You should have received a copy of the GNU Lesser General Public License
81
along with ColorPy. If not, see <http://www.gnu.org/licenses/>.
82
83