Lines Matching refs:glyph
30 for (Glyph& glyph : fGlyphs) {
31 glyph.reset(fRand, this->width(), this->height());
99 Glyph& glyph = fGlyphs[i];
101 canvas->translate(glyph.fPosition.x(), glyph.fPosition.y());
102 canvas->scale(glyph.fZoom, glyph.fZoom);
103 canvas->rotate(glyph.fSpin);
104 canvas->translate(-glyph.fMidpt.x(), -glyph.fMidpt.y());
105 canvas->drawPath(glyph.fPath, glyph.fPaint);
195 Glyph* glyph = &fGlyphs[idx];
198 glyph->fPosition.fX += v->fDx * dt;
199 if (glyph->fPosition.x() < 0) {
200 glyph->fPosition.fX -= 2 * glyph->fPosition.x();
202 } else if (glyph->fPosition.x() > w) {
203 glyph->fPosition.fX -= 2 * (glyph->fPosition.x() - w);
207 glyph->fPosition.fY += v->fDy * dt;
208 if (glyph->fPosition.y() < 0) {
209 glyph->fPosition.fY -= 2 * glyph->fPosition.y();
211 } else if (glyph->fPosition.y() > h) {
212 glyph->fPosition.fY -= 2 * (glyph->fPosition.y() - h);
216 glyph->fSpin += v->fDSpin * dt;
218 backMatrix->setTranslate(glyph->fPosition.x(), glyph->fPosition.y());
219 backMatrix->preScale(glyph->fZoom, glyph->fZoom);
220 backMatrix->preRotate(glyph->fSpin);
221 backMatrix->preTranslate(-glyph->fMidpt.x(), -glyph->fMidpt.y());
279 const Glyph& glyph = fGlyphs[i];
292 for (auto [verb, pts, w] : SkPathPriv::Iterate(glyph.fPath)) {