Search code examples
autodesk-forgemonochrome

2D drawing file to Monochrome in Forge viewer


I want to change the color DWG to monochrome in the Forge viewer. Is there any option to change it to monochrome? enter image description here


Solution

  • you can use the method setGrayscale to switch to black and white

    viewer.setGrayscale(true)

    The other method setSwapBlackAndWhite could swap the background and front color