Commit graph

9 commits

Author SHA1 Message Date
Mike Swanson
6eef9be73a use python3 only for building
Python 2 is very near end-of-life, and Python3-compatible changes to a
few scripts introduced compatibility problems with 2.7 again.  It went
unnoticed for me since my system symlinks "python" to "python3", but
it broke the build on systems where that symlink is still python2.  At
this point in time, I feel it is worth targetting modern Python and
forgetting about 2.7.
2019-09-06 14:43:50 -07:00
Mike Swanson
4701d8f351 Blacken all Python files
Using the black code reformatter, pass it over all our Python files.
This allows for a consistent style across the code base.

Exception: lumps/dmxgus/stats.py, for readability.
2019-09-04 19:36:23 -07:00
Mike Swanson
6b486b6332 rename python scripts to barenames where possible 2019-09-04 19:20:19 -07:00
Mike Swanson
eca25952ad make: use $(RM) for removing files
This is one of the built-in variables for Make and can increase
portability on different operating systems (eg, on Windows, the
built-in $(RM) may be defined as "del" instead of "rm -f").
2019-09-04 14:22:49 -07:00
Mike Swanson
4ccdc785d0 colormap: use a crispier grayscale algorithm
Instead of averaging the RGB values, use a formula that better
approximates how the human eye sees color.

Formula was taken from this page:
http://www.tannerhelland.com/3643/grayscale-image-algorithm-vb6/
2019-08-24 16:57:42 -07:00
Mike Swanson
a0e65f7fed Remove Boom special colormaps.
We’re not a Boom IWAD anymore, we can get rid of these.
2017-02-19 12:04:58 -08:00
Mike Swanson
8835afef5f Copyright date bump and apply SPDX tags.
The tags are shorthand for the license of each file and avoid
copying the full license text into each one (and avoids having
to manually update the dates in each one...).
2017-02-15 16:41:53 -08:00
Simon Howard
254602c6db lumps: Add README files for some directories.
These deserve to be documented.
2015-12-24 12:29:25 +01:00
Simon Howard
103cd74f4e lumps: Split out cph/misc-lumps.
This eliminates another author-name directory. PLAYPAL and COLORMAP
generation are separate operations that are really only very vaguely
related to one another. Move these into separate, logically-named
directories.

As part of this we eliminate the symlinks for the PLAYPAL and various
colormap lump files, and instead copy these into the parent directory
for use by deutex. This brings further progress on #202.
2015-12-24 11:12:31 +01:00