Table of Contents

CadPlotStyles

from OpenCAD2D import CadPlotStyles

class CadPlotStyles(System.Object) ยท CadPlotStyles in the .NET reference

The plot style tables the presenter makes in code, as AutoCAD's monochrome.ctb and grayscale.ctb colour a plot: no table file is read. White, AutoCAD's colour 7 on a dark screen, plots black on the white sheet with every table.

Methods

Map

.NET

@staticmethod
def Map(table: CadPlotStyleTable, rgb: int) -> int

Gets the colour an object of a colour plots in: black with CadPlotStyleTable.Monochrome; with CadPlotStyleTable.Grayscale the grey of its brightness, 0.299 red, 0.587 green and 0.114 blue, so pure red plots #4C4C4C, green #969696 and blue #1D1D1D; with CadPlotStyleTable.None its own. White, and colours within 2 per cent of it, plot black with each.