//virtual void ColorDetector::onValueChanged(QtProperty* property, void* id, const QVariant& variant) { // addIntProperty(tr("Threshold"), m_threshold, 0, 1000); // addColorProperty(tr("Target Color"), m_targetColor.toQColor()); if (id == m_threshold.id()) { setThreshold(variant.value<int>()); } else if (id == m_targetColor.id()) { setTargetColor(variant.value<QColor>()); } }
void CC3ActionTintTo::update( float t ) { setTargetColor( CCC4FBlend(m_startColor, m_endColor, t) ); }