meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
en:quick_reference_general [2020/11/28 01:53] Admin created |
en:quick_reference_general [2021/04/08 05:29] (current) JSCAD Editor |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== General | + | ===== General |
| - | The follow defaults | + | ==== Colors ==== |
| - | | + | |
| - | * **CSG.defaultResolution3D: 12** | + | The ' |
| + | |||
| + | <code javascript> | ||
| + | const { colorize, hexToRgb } = require(' | ||
| + | </ | ||
| + | |||
| + | ^ Function | ||
| + | | let newshape = colorize([1, 0, 0], oldshape) | ||
| + | | let newshape = colorize(colorNameToRgb(' | ||
| + | | let newshape = colorize(hexToRgb('# | ||
| + | | let newshape = colorize(hslToRgb([0.9166666666666666, | ||
| + | | let newshape = colorize(hsvToRgb([0.9166666666666666, | ||
| + | |||
| + | === Utilities === | ||
| + | |||
| + | The ' | ||
| + | |||
| + | <code javascript> | ||
| + | const { radToDeg, degToRad } = require(' | ||
| + | </ | ||
| + | |||
| + | ^ Function | ||
| + | | let radians = degToRad(90) | ||
| + | | let degrees = radToDeg(Math.PI) | ||
| + | | let segments = radiusToSegments(3.5, | ||
| + | | let segments = radiusToSegments(3.5, | ||