meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:quick_reference_general [2020/12/01 23:52] JSCAD Editor [Colors] |
en:quick_reference_general [2021/04/08 05:29] (current) JSCAD Editor |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ^ Function | ^ Function | ||
| - | | let newshape = colorize([1, | + | | let newshape = colorize([1, |
| - | | let newshape = colorize(colorNameToRgb(' | + | | let newshape = colorize(colorNameToRgb(' |
| + | | let newshape = colorize(hexToRgb('# | ||
| + | | let newshape = colorize(hslToRgb([0.9166666666666666, | ||
| + | | let newshape = colorize(hsvToRgb([0.9166666666666666, | ||
| === Utilities === | === 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, | ||