void SplashScreen::doDraw(const CurrentTransform&, float sx, float sy, float ex, float ey) { double t = iclock() - startTime_; float a1 = alphaFunction(t); float a2 = alphaFunction(t - 0.25); graphicsBase1_.setColor(1, 1, 1, a1); graphicsBase1_.draw(shader_); graphicsBase2_.setColor(1, 1, 1, a2); graphicsBase2_.draw(shader_); }
TextStream& SVGFEComponentTransfer::externalRepresentation(TextStream& ts) const { ts << "[type=COMPONENT-TRANSFER] "; SVGFilterEffect::externalRepresentation(ts); ts << " [red func=" << redFunction() << "]" << " [green func=" << greenFunction() << "]" << " [blue func=" << blueFunction() << "]" << " [alpha func=" << alphaFunction() << "]"; return ts; }