qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
static float bytesToColor(QByteArray bytes)
Converts a series of IDENTICON_COLOR_BYTES bytes to a value in the range 0.0..1.0.
static constexpr int HASH_MIN_LEN
Identicon(const QByteArray &data)
Creates an Identicon, that visualizes a hash in graphical form.
static constexpr int IDENTICON_ROWS
static constexpr int COLORS
QImage toImage(int scaleFactor=1)
Writes the Identicon to a QImage.
uint8_t identiconColors[IDENTICON_ROWS][ACTIVE_COLS]
static constexpr int ACTIVE_COLS
static constexpr int IDENTICON_COLOR_BYTES