Lines Matching +full:- +full:- +full:hard
4 * Use of this source code is governed by a BSD-style license that can be
18 // This draws a hard stop gradient applied to a rectangle. The hard stops fall at half pixel
21 // When they disagree the hard stop gradient appears jagged. We draw the rectangle four times:
22 // no-mirroring, mirror in x, mirror in y, and mirror in x and y.
35 canvas->translate(50, 50);
37 canvas->save();
39 canvas->translate(0, kMirrorY);
40 canvas->scale(1.f, -1.f);
43 canvas->translate(kMirrorX, 0);
44 canvas->scale(-1.f, 1.f);
46 canvas->drawRect({0, 0, 150, 30}, paint);
47 canvas->restore();