colour — a reasoning module
Colour pairs and rays of light decided, and light calculated, as a DKE Python module you compile into your own store. You record a pair by the relative luminance of its text and background and a ray by two refractive indices and the sine of its angle; it concludes which Web Content Accessibility Guidelines contrast levels a pair clears and whether a ray is totally reflected, each with its proof and with the premise that failed. It calculates sRGB luminance and the contrast ratio, hue, saturation and lightness, Snell's law, the critical angle, the thin lens, Wien's law and the frequency of a wavelength, bit for bit as CPython does.
Licence: MIT. Current version: 1.0.1, released in rev 144.
Get it
The whole release, as one archive:
curl -O https://dke.langsyn.com/source/colour/1.0.1/colour-1.0.1.tar.gz
Its SHA-256: bcddbbb68e6c5d5a7ffc6f28177aa495b8b98da6460e3d5cc7833e9909f06f47.
Or browse version 1.0.1 file by file.
/source/colour/latest/ always redirects to the current version.
A release's files never change. When the next release supersedes this one, this
version stays served at its URL, marked superseded, so cite the version and the
archive's digest to say exactly which bytes you read, and use latest
for a link that follows each new release.
Current release
- 1.0.1
1 file, released in rev 144