Skip to content

Instantly share code, notes, and snippets.

@YujiSODE
Created March 19, 2021 10:34
Show Gist options
  • Save YujiSODE/298b7aba0ad0b39685c07e277228915e to your computer and use it in GitHub Desktop.
Save YujiSODE/298b7aba0ad0b39685c07e277228915e to your computer and use it in GitHub Desktop.
It can be used as a free landform map data (implementation in JavaScript). This is a map showing imaginary landform that expressed by heights in 19x26 grid on 1/25000 scaled map.
/*imaginaryLandform
* imaginaryLandform_20180601.js
*===================================================================
* Copyright (c) 2018-2021 Yuji SODE <yuji.sode@gmail.com>
*
* This software is released under the MIT License.
*===================================================================
* It can be used as a free landform map data (implementation in JavaScript).
* This is a map showing imaginary landform that expressed by heights in 19x26 grid on 1/25000 scaled map.
*----------------------------------------------
* this landform map is based on imaginaryLandform_20180601.tcl (Yuji SODE,2018; the MIT License)
*
*=== Original version ===
* - imaginaryLandform/imaginaryLandform_20180601.tcl (Yuji SODE,2018): the MIT License; https://gist.github.com/YujiSODE/04348f5f81ae4276118179143ec56ffd
*
* this landform map was originally designed by Yuji SODE on [2018-06-01]
*
*=== map informtion ===
* - Width: V[0].length = 19
* - grid: 19x26
* - Max height: 155
* - Min height: 5
*----------------------------------------------
*/
//V is a 2d array showing heights in a cell
var V=[
[65,65,65,70,75,85,90,85,75,75,70,65,60,55,50,45,45,45,45],
[65,65,75,85,95,105,105,105,100,95,85,75,65,60,55,55,45,45,45],
[65,75,85,95,105,115,125,115,115,105,95,85,75,65,65,55,55,45,45],
[70,85,95,105,115,125,135,135,125,115,105,90,85,70,65,60,55,45,45],
[75,85,105,105,115,125,155,145,125,125,115,100,85,75,65,65,55,45,45],
[75,95,105,110,120,135,150,155,140,125,115,115,85,75,65,65,55,45,45],
[75,95,105,105,115,125,135,145,135,135,125,115,95,85,75,65,55,45,45],
[75,85,95,105,115,115,115,125,135,135,135,115,105,85,75,65,55,45,45],
[65,75,85,95,105,105,115,115,120,125,125,125,105,85,75,65,55,45,45],
[55,65,75,85,95,95,95,95,110,115,115,125,115,85,75,65,55,55,45],
[45,55,65,70,75,80,85,85,95,95,105,115,105,85,75,65,60,55,45],
[30,35,45,55,65,75,75,75,75,85,85,90,95,85,75,65,65,55,50],
[20,25,25,35,45,45,50,55,60,65,65,75,85,85,85,75,65,65,55],
[15,15,25,25,25,35,35,35,40,40,45,45,75,85,90,85,75,65,55],
[15,15,15,15,15,25,25,25,35,35,35,35,75,85,95,90,85,75,60],
[15,15,15,15,15,15,20,25,25,35,35,55,75,85,100,110,95,75,70],
[10,15,15,15,15,15,15,25,35,35,45,70,85,95,105,115,105,85,75],
[5,5,15,15,15,15,15,25,35,45,65,85,85,95,115,125,105,95,75],
[5,5,5,15,15,15,25,35,45,55,75,85,95,115,125,125,105,95,75],
[5,5,5,15,15,15,25,35,55,75,85,95,105,115,135,120,105,90,75],
[5,5,5,15,15,25,25,45,65,85,90,105,115,125,120,115,95,85,75],
[5,5,5,15,20,25,35,55,75,85,95,105,115,115,115,105,85,75,70],
[5,5,15,15,25,25,45,65,85,95,105,105,105,105,95,95,75,75,65],
[5,10,15,25,25,25,55,75,85,85,95,95,95,95,85,75,75,65,65],
[5,15,15,25,25,35,55,65,75,85,85,85,85,75,75,75,65,65,65],
[15,15,20,25,30,45,55,65,75,75,75,75,75,75,75,65,65,65,65]
];
/*=== License ===
* MIT License
*
* Copyright (c) 2018-2021 Yuji Sode
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment