init(name:entries:)

    Creates a suggested palette.

    PNG.SuggestedPalette.swift:29
    init(name: String, entries: Entries)

    Parameters

    name

    The palette name.

    This string must contain only unicode scalars in the ranges "\u{20}" ... "\u{7d}" or "\u{a1}" ... "\u{ff}". Leading, trailing, and consecutive spaces are not allowed. Passing an invalid string will result in a precondition failure.

    entries

    A variant array of palette colors and frequencies.

    Other members in extension

    Types

    • enum Entries

      A variant array of palette colors and frequencies.

    Type members

    Instance members