Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorAnimation::detail Namespace Reference

Classes

struct  OkLab
struct  DecomposedTransform

Concepts

concept  PositionalGeometric
 Position-carrying T whose damage region is fully determined by endpoints + overshoot.
concept  SizeGeometric
 Size-only T — caller must supply an anchor for damage rect.
concept  ScalarValue

Functions

qreal srgbToLinear (qreal c)
qreal linearToSrgb (qreal c)
QColor lerpColorLinear (const QColor &from, const QColor &to, qreal t)
OkLab linearToOkLab (qreal r, qreal g, qreal bv)
void okLabToLinear (const OkLab &lab, qreal &r, qreal &g, qreal &bv)
QColor lerpColorOkLab (const QColor &from, const QColor &to, qreal t)
qreal colorDistance (const QColor &from, const QColor &to)
 L2 norm in linear-RGB space — matches the lerp space so velocity rescale uses a consistent metric.
DecomposedTransform decomposeTransform (const QTransform &t)
 QR-style decomposition on the 2x2 linear part under Qt's post-multiply row-vector convention: M = R x K x S.
QTransform recomposeTransform (const DecomposedTransform &d)
bool isPureTranslate (const QTransform &t)
 True if the 2x2 linear part is identity (only translation present).
QTransform lerpTransform (const QTransform &from, const QTransform &to, qreal t)

Function Documentation

◆ colorDistance()

qreal PhosphorAnimation::detail::colorDistance ( const QColor & from,
const QColor & to )
inline

L2 norm in linear-RGB space — matches the lerp space so velocity rescale uses a consistent metric.

◆ decomposeTransform()

DecomposedTransform PhosphorAnimation::detail::decomposeTransform ( const QTransform & t)
inline

QR-style decomposition on the 2x2 linear part under Qt's post-multiply row-vector convention: M = R x K x S.

◆ isPureTranslate()

bool PhosphorAnimation::detail::isPureTranslate ( const QTransform & t)
inline

True if the 2x2 linear part is identity (only translation present).

◆ lerpColorLinear()

QColor PhosphorAnimation::detail::lerpColorLinear ( const QColor & from,
const QColor & to,
qreal t )
inline

◆ lerpColorOkLab()

QColor PhosphorAnimation::detail::lerpColorOkLab ( const QColor & from,
const QColor & to,
qreal t )
inline

◆ lerpTransform()

QTransform PhosphorAnimation::detail::lerpTransform ( const QTransform & from,
const QTransform & to,
qreal t )
inline

◆ linearToOkLab()

OkLab PhosphorAnimation::detail::linearToOkLab ( qreal r,
qreal g,
qreal bv )
inline

◆ linearToSrgb()

qreal PhosphorAnimation::detail::linearToSrgb ( qreal c)
inline

◆ okLabToLinear()

void PhosphorAnimation::detail::okLabToLinear ( const OkLab & lab,
qreal & r,
qreal & g,
qreal & bv )
inline

◆ recomposeTransform()

QTransform PhosphorAnimation::detail::recomposeTransform ( const DecomposedTransform & d)
inline

◆ srgbToLinear()

qreal PhosphorAnimation::detail::srgbToLinear ( qreal c)
inline