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
// Import your preferred Color class | |
import { Color } from "./datastructures/Color"; | |
// A mix of green shades | |
// Example at https://www.int2byte.de/public/plot-boilerplate/screenshots/screenshots-fullcolor/screenshot-20201027-0-multiple-circle-intersection-malachite.png | |
export const WebColorsMalachite : Array<Color> = [ | |
Color.makeRGB(0,21,6), | |
Color.makeRGB(0,30,12), | |
Color.makeRGB(0,52,28), | |
Color.makeRGB(0,81,47), |
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
// Intend: create a shape with all available SVG path commands. | |
// Result: two shapes, one with absolute commands only, the second with relative commands only. | |
// Aim: test my SVG path transform algorithm if it works (scale and translate). | |
var drawScalingTestPath = function() { | |
// Define a shape with SVG path data attributes only with _absolute_ | |
// path commands. | |
var svgDataAbsolute = [ | |
'M', -10, -7.5, | |
'V', -10, |
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
/** | |
* The main function. | |
* | |
* @param {Polygon} polygon | |
* @param {number} pointCount - Must not be negative. | |
*/ | |
var ep = function (polygon, pointCount) { | |
if (pointCount <= 0) { | |
throw new Error("pointCount must be larger than zero; is " + pointCount + "."); | |
} |
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
input[type="range"] { | |
-webkit-appearance: none; | |
appearance: none; | |
background: transparent; | |
cursor: pointer; | |
} | |
/***** Chrome, Safari, Opera, and Edge Chromium *****/ | |
input[type="range"]::-webkit-slider-runnable-track { | |
height: 0.5rem; |
OlderNewer