File:Hexagonal chess.svg
Original file (SVG file, nominally 625 × 685 pixels, file size: 214 KB)
Captions
Play
Summary
[edit]DescriptionHexagonal chess.svg |
English: Gliński’s hexagonal chess setup |
Date | |
Source | Own work |
Author | László Németh |
; Created in LibreOffice 4 with this LibreLogo program (+object to path conversion ; of FreeSerif chess figures of the final SVG by Inkscape for Wikipedia SVG rendering) ; Usage: Put this code into an English language document in LibO Writer, ; and click on the Start icon of the View»Toolbars»Logo toolbar. ; requested chess font: http://mip.noekeon.org/HTMLTTChess/chess_merida_unicode.html ; for other setup, positions, modify the arguments of the chess call in the end of the file GLOBAL COLORS, FIX_SVG_EXPORT COLORS = [0xe8ab6f, 0xffce9e, 0xd18b47] FIX_SVG_EXPORT = 4pt ; set zero for other usage TO setcolor p1 p2 IF p2 > 5 [ p2 = p1 + -p2 ] [ p2 = p1 + p2 ] FILLCOLOR COLORS[p2%3] END TO hexagon s p = POSITION H = HEADING PENUP LEFT 30 FORWARD s LEFT 120 PENDOWN PENCOLOR “INVISIBLE” REPEAT 6 [ FORWARD s LEFT 60 ] FILL PENUP POSITION p HEADING H END HOME CLEARSCREEN PENUP POSITION [75, PAGESIZE[1]/2] PENJOINT “MITER” HIDETURTLE TO label2 s FONTFAMILY “Nimbus Sans L” FONTSIZE 25 h = HEADING HEADING 0 LABEL s HEADING h END TO chess white black PENCOLOR “BLACK” PENDOWN RIGHT 60 FILLCOLOR “INVISIBLE” PENSIZE 4 REPEAT 2 [ ; outer border REPEAT 6 [ FORWARD 25 RIGHT 60 REPEAT 5 [ FORWARD 25 LEFT 60 FORWARD 25 RIGHT 60 ] ] FILL FILLCOLOR COLORS[1] PENSIZE 0 ; only outer border ] PENUP FORWARD 25 LEFT 120 FORWARD 25 HEADING 0 data = {“K”: “♔♚”, “Q”: “♕♛”, “R”: “♖♜”, “B”: “♗♝”, “N”: “♘♞”, “ ”: “♙♟”} HEADING 0 RIGHT 120 n = 0 figures = white + “ ” + black + “ ” FOR i IN RANGE 0 12 [ FOR j IN RANGE n 13-n [ setcolor i j IF j = 6 [ LEFT 60 ] IF i > 0 AND j > n AND j < 12 - n [ hexagon 25 ] [ FILLCOLOR “INVISIBLE” CIRCLE 50 ; for correct SVG clipping IF i > 0 [ label2 STR i ] ] p = “%s%d ” % (“abcdefghiklx”[j-1], i) what = figures.find(p) IF what > -1 [ FONTFAMILY “Chess Merida Unicode” FONTSIZE 35 H = HEADING HEADING 0 FORWARD FIX_SVG_EXPORT k = data[(“ ” + figures)[what]] FONTCOLOR “WHITE” LABEL k[2] FONTCOLOR “BLACK” LABEL k[what > COUNT WHITE] BACK FIX_SVG_EXPORT HEADING H ] IF i = 0 AND j > 0 AND j < 13 [ l = “ abcdefghikl ”[j] label2 l ] PENUP LEFT 30 FORWARD 25 RIGHT 60 FORWARD 25 LEFT 30 ] PENUP RIGHT 30 IF i < 6 [ BACK 19 * 25 RIGHT 60 BACK 25 LEFT 30 ] [ BACK (18 – 3 * n) * 25 RIGHT 30 n = n + 1 ] ] END PICTURE “hexagonal_chess.svg” [ chess “Kg1 Qe1 Rc1 Ri1 Nd1 Nh1 Bf1 Bf2 Bf3 b1 c2 d3 e4 f5 g4 h3 i2 k1” “Kg10 Qe10 Rc8 Ri8 Nd9 Nh9 Bf9 Bf10 Bf11 b7 c7 d7 e7 f7 g7 h7 i7 k7” ]
Licensing
[edit]This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 14:36, 23 July 2013 | 625 × 685 (214 KB) | Nl74 (talk | contribs) | better chess figures (Chess Merida Unicode) and colors | |
12:30, 23 July 2013 | 625 × 685 (226 KB) | Nl74 (talk | contribs) | small fixes (white cross of black bishop, remove thin outer border within outer hexagons) | ||
11:38, 23 July 2013 | 625 × 685 (167 KB) | Nl74 (talk | contribs) | light version | ||
11:09, 23 July 2013 | 625 × 685 (167 KB) | Nl74 (talk | contribs) | keep original chess figures (SVG rendering of Wikipedia doesn't support FreeSerif with its better chess figures) | ||
11:05, 23 July 2013 | 625 × 685 (59 KB) | Nl74 (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
The following 2 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on da.wikipedia.org
- Usage on el.wikipedia.org
- Usage on en.wikipedia.org
- Usage on en.wikibooks.org
- Usage on eo.wikipedia.org
- Usage on hu.wikipedia.org
- Usage on ko.wikipedia.org
- Usage on no.wikipedia.org
- Usage on pl.wikipedia.org
- Usage on ro.wikipedia.org
- Usage on tr.wikipedia.org
- Usage on uk.wikipedia.org
- Usage on www.wikidata.org
- Usage on zh.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 176.48mm |
---|---|
Height | 193.38mm |