Garry's Mod Wiki

DColorPalette:GetNumRows

  number DColorPalette:GetNumRows()

Description

An AccessorFunc that returns the number of rows of the palette, provided 6 colors fill each row. This value is equal to the number of colors in the DColorPalette divided by 6.

Returns

1 number
Number of rows of the DColorPalette.