This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) | |
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information. | |
/* | |
* PARTS OF THIS FILE ARE MODIFICATIONS OF QUAKE 3 CODE UNDER THE FOLLOWING: | |
=========================================================================== | |
Copyright (C) 1999-2005 Id Software, Inc. | |
This file is part of Quake III Arena source code. | |
Quake III Arena source code is free software; you can redistribute it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use svgPath and bezierCommand from https://medium.com/@francoisromain/smooth-a-svg-path-with-cubic-bezier-curves-e37b49d46c74 | |
import { svgPath, bezierCommand } from './svgPath'; | |
import { makeNoise2D } from 'open-simplex-noise'; | |
const chance = require('chance').Chance(); | |
// Creates a grid specified as a list of lines, with each line a list of coordinate pairs | |
// Each line is made up of points spaced as given | |
const grid = ({ | |
width, |