PdfColor.fromInt constructor

const PdfColor.fromInt(
  1. int color
)

Return a color with: 0xAARRGGBB

Implementation

const PdfColor.fromInt(int color)
    : red = (color >> 16 & 0xff) / 255.0,
      green = (color >> 8 & 0xff) / 255.0,
      blue = (color & 0xff) / 255.0,
      alpha = (color >> 24 & 0xff) / 255.0;