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:design_guide_color [2020/12/01 01:26] JSCAD Editor |
en:design_guide_color [2021/05/29 08:48] (current) JSCAD Editor |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Shapes can exhibit different colors. And just like the other transformations, | Shapes can exhibit different colors. And just like the other transformations, | ||
| + | |||
| + | Colors are not only important for visual rendering but also controlling the selection of filaments during 3D printing. Therefore, colors should be applied as the last step in designs to insure proper printing. | ||
| <code javascript> | <code javascript> | ||
| - | let myshape = colorize([1, | + | const myshape = colorize([1, |
| - | let myshape = colorize([1, | + | const myshape = colorize([1, |
| - | let myshape = colorize([1, | + | const myshape = colorize([1, |
| </ | </ | ||
| Line 16: | Line 18: | ||
| <code javascript> | <code javascript> | ||
| - | let wildcylinder = colorize(colorNameToRgb(' | + | const wildcylinder = colorize(colorNameToRgb(' |
| - | let bluesphere = colorize(hexToRgb('# | + | const bluesphere = colorize(hexToRgb('# |
| - | let mysphere = colorize(hslToRgb([0.9166666666666666, | + | const mysphere = colorize(hslToRgb([0.9166666666666666, |
| - | let mysphere = colorize(hsvToRgb([0.9166666666666666, | + | const mysphere = colorize(hsvToRgb([0.9166666666666666, |
| </ | </ | ||