]> git.rm.cloudns.org Git - xonotic/mediasource.git/commitdiff
Revise the Luma documentation files
authorSeverin Meyer <sev.ch@web.de>
Wed, 11 Jul 2018 06:43:07 +0000 (08:43 +0200)
committerSeverin Meyer <sev.ch@web.de>
Wed, 11 Jul 2018 06:43:07 +0000 (08:43 +0200)
gfx/luma_add/README.txt
gfx/luma_add/colors/README.txt
gfx/luma_add/colors/draw-collage.py
gfx/luma_add/render.sh

index bbfc1ad22f308a6569aceee682d74f9177feeb95..cf51ba69f424a848b2c7dc97ac4cc56e142d66c9 100644 (file)
@@ -13,8 +13,8 @@ Individual files can be rendered in Inkscape with
 
        File > Export PNG Image (Full page at 96 dpi)
 
-Unfortunately, Inkscape cannot export TGA images,
-therefore it is necessary to convert the exported
+Unfortunately, Inkscape cannot export TGA images.
+Therefore it is necessary to convert the exported
 images afterwards, for example with the GIMP or
 ImageMagick (convert image.png image.tga).
 
@@ -27,18 +27,12 @@ Structure
 I recommend to open the SVG files in a text editor for
 insight. Most images consist of simple path elements.
 SVG filters are applied to these paths to add blurs
-and glows. Shared filters and gradients are explained
-and stored in dedicated files per directory
-
-       common.filters
-       common.gradients
-
-The filters should not require editing. A detailed
-explanation of SVG filter elements is available at
+and glows. The filters should not require editing.
+More information about SVG filters is available at
 
        <https://www.w3.org/TR/SVG/filters.html>
 
-Filters may be turned off with
+In Inkscape, filters can be turned off with
 
        View > Display mode > No Filters
 
index 3af74938925a8948d6a3ca79ae2944bd81ec6678..a4fb0bc293b6825c41d2d8432aeb0e053ec1faf7 100644 (file)
@@ -4,6 +4,9 @@ which allows them to be colorized in code.
 The suggested blend mode for colorization is addition.
 The suggested colors to be added are listed in colors.txt
 
-The colors are chosen for consistent percieved luminance
-and saturation. Though peer-review might be necessary to
-account for diverse screen settings and perceptions.
+The automtically generated print-float.txt includes float
+representations of the colors, for easy copy and paste.
+
+The colors are chosen for a consistent percieved brightness
+and saturation. Peer-review might be necessary to account
+for diverse screen settings and perceptions.
index e50935cd313be09b9f755415827e76bce2cf4761..78a0c63d1370346c6bd7754ef219b71031f5a5d2 100755 (executable)
@@ -26,29 +26,28 @@ ICON_FILE  = "icon.tga"
 FONT_SIZE  = 16
 FONT_COLOR = ImageColor.getrgb("#ffffff")
 FONT_FILE  = io.BytesIO(base64.b64decode(b"""
-d09GRgABAAAAAAVIAA0AAAAACNgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAFLAAAABwAAAAc
-hP9MNEdERUYAAAUIAAAAJAAAACYAKQA5T1MvMgAAAaAAAABFAAAAYCSOJrxjbWFwAAACAAAAAGAAAAFK
-LsspBmdhc3AAAAUAAAAACAAAAAj//wADZ2x5ZgAAAogAAAG5AAAD5ClG3QZoZWFkAAABMAAAADMAAAA2
-DdIrKGhoZWEAAAFkAAAAHAAAACQAMgAPaG10eAAAAegAAAAXAAAALgBKABRsb2NhAAACYAAAACgAAAAo
-CCQJCG1heHAAAAGAAAAAHgAAACAAWAApbmFtZQAABEQAAACiAAABKdbKpU1wb3N0AAAE6AAAABYAAAAg
-//4AA3icY2BkYGAA4otfdh6P57f5ysDNoAAUYbgeYCgEpgP3PGRgAjIEGCSAJAeYzQAAPT8JdQB4nGNg
-ZGBgUPj/A0gKMYCAAAMjAypgAQBBKAJAeJxjYGRgYBBmUGNgZgABJiBmZACJOYD5DAAINQCCAAB4nGNg
-YRBinMDAysDAIMIgBiRZoDQ/AyMDBwMDEwMrJwMMMDIgAQUgYDjAYMCQxiD1/xdQrQJIPVSNENgMBQZG
-ANrDBZEAAAB4nGMQYmBhAAEhMGYC8phwQhYACywAXwB4nGNgYGBmgGAZBkYGEHAB8hjBfBYGDSDNBqQZ
-GZgYLBnS/v8H8g0YEv///3/5/xqoeiBgZGOAcxiZgAQTAypgZMAAzCysbOwcnFzcPJhyWAEvH7+AoBCR
-iukPAMq4CiEAAAASABIAEgA0AEIAYgCEAJoAtgDcAO4BIgFIAWoBhgGeAboB3AHyeJx1U8tuwyAQXCZr
-TKjrvkwSqeqlqPKhtxLk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bE+y4MV+EM3DAN0RsJoNLwIZdXI+sIOfCG8EWzawyhPw9jb0X1
+jWv7rleUtleUSqe30gTWmtYcgeUxQnFH6ClWl2QlmYjOZ8iaX1UCZZ/JgzD20L4WnJ6xUQqnVHHbszhY
+ZXDTff6fwVxav2awNWXsVen9rI9wAL3ryvxMHJ1ZVErLZm8/4aBGYfOyScF1Ckz/j0/Ue0+zRqV1iWxQ
+oCi+CSPlA/0FDP9QAgAAAHjaVcwzQwQAAAXgL5tLWOKa3XqNWUvG2cafj8fp+WFITo+u3iHMU+ddhs3X
+ebdxq3XeY9p2nfe2dfrMOqnz/jZ/zLjHOh/3KuZGUElQTlTKojNB1T99JiVty75rQWFFCW8d/qIt6zbd
+C8rJi0pLNd1FAQGbTR1RUJBxbMOGDzlBbwqiSoI+pCUlpaXkrUvLCduQUfQuIerD51/nTVTKhpqgnLSN
+//9vR8ImfAB42mNgZgCD/98YWIAUIwMaAAAu5AH+AAAAAAAB//8AAg==
 """))
 
 POSITIONS = (
@@ -78,10 +77,10 @@ collage = Image.new("RGBA", (int(7.125*iconW), int(6.0*iconH)))
 collageDraw = ImageDraw.Draw(collage)
 
 # Draw collage
-for postition, rgbString in zip(POSITIONS, colors):
+for position, rgbString in zip(POSITIONS, colors):
 
-       x = int(postition[0] * iconW)
-       y = int(postition[1] * iconH)
+       x = int(position[0] * iconW)
+       y = int(position[1] * iconH)
 
        # Draw colorized icon
        addColor = ImageColor.getrgb("#" + rgbString + "00")
index a2be88e77bf8fd323b6a6b79c79ecec58ef557ef..6248d3c9634a8f5da4397e1c71d47050333b454e 100755 (executable)
@@ -3,16 +3,16 @@
 # Renders SVG files from ./path/file.svg to OUTDIR/path/file.tga
 # Overwrites existing tga files
 #
-# USAGE
-#   ./render-svg.sh OUTDIR SVG...
+# Usage:
+#   ./render.sh OUTDIR SVG...
 #
-# EXAMPLES
-#   Single file: ./render.sh ~/.xonotic/data gfx/menu/luma/cursor.svg
-#   All files:   ./render.sh ~/.xonotic/data $(find . -name "*.svg")
+# Examples:
+#   One file:  ./render.sh ~/.xonotic/data gfx/hud/luma/armor.svg
+#   All files: ./render.sh ~/.xonotic/data $(find . -name "*.svg")
 #
-# DEPENDENCIES
-#   inkscape    (0.92.3)
-#   imagemagick (7.0.7)
+# Dependencies:
+#   Inkscape    (0.92.3)
+#   ImageMagick (7.0.7)
 
 
 outDir="$1"; shift