File:Scorigami_Board.svg
From Wikipedia, the free encyclopedia
Size of this PNG preview of this SVG file: 512 × 362 pixels. Other resolutions: 320 × 226 pixels | 640 × 453 pixels | 1,024 × 724 pixels | 1,280 × 905 pixels | 2,560 × 1,810 pixels.
Original file (SVG file, nominally 512 × 362 pixels, file size: 30 KB)
This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. |
Summary
DescriptionScorigami Board.svg |
English: Generated via front end javascript |
Date | |
Source | Own work |
Author | 1ctinus |
code used to generate the board (unoptimized):
document.getElementById("demo").innerHTML = data.matrix[17][20].count
let board = ''
board += '<g text-anchor="middle" font-size="6pt" font-family="monospace">'
for(let i = 0; i <= 73; i++){
board += `<text alignment-baseline="middle" y="5" x="${10*(i+1.5)}">${i}</text>`
}
for(let i = 0; i <= 51; i++){ // i is losing score
board += `<text alignment-baseline="middle" x="5" y="${10*(i+1.5)}">${i}</text>`
}
board += '</g>'
for(let i = 0; i <= 51; i++){
board += `<rect width="${(i == 1) ? 60: 10*i}" height="10" x="10" y="${10*(i+1)}" fill="black"/>`
for(let j = i; j <= 73; j++){ // j is winning score
if(data.matrix[i][j].count > 0){
board += `<rect width="10" height="10" x="${(j+1)*10}" y="${(i+1)*10}" fill="#0c0" />`
}
}
}
board += '<rect width="10" height="10" x="80" y="20"/>'
board += '<rect width="10" height="10" x="20" y="10"/>'
document.getElementById("demo").innerHTML = board.length
document.getElementById("svg").innerHTML = board
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
2 February 2024
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 18:47, 2 February 2024 | 512 × 362 (30 KB) | 1ctinus | forgot an extra blacked out spot | |
18:41, 2 February 2024 | 512 × 362 (30 KB) | 1ctinus | Uploaded own work with UploadWizard |
File usage
The following pages on the English Wikipedia use this file (pages on other projects are not listed):
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Width | 100% |
---|---|
Height | 100% |
Retrieved from "https://en.wikipedia.org/wiki/File:Scorigami_Board.svg"