Home
last modified time | relevance | path

Searched refs:opacities (Results 1 – 4 of 4) sorted by relevance

/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/
DGradientColorParser.java113 double[] opacities = new double[opacityStops]; in addOpacityStopsToGradientIfNeeded() local
119 opacities[j] = array.get(i); in addOpacityStopsToGradientIfNeeded()
127 getOpacityAtPosition(gradientColor.getPositions()[i], positions, opacities), in addOpacityStopsToGradientIfNeeded()
137 private int getOpacityAtPosition(double position, double[] positions, double[] opacities) { in getOpacityAtPosition() argument
143 return (int) (255 * MiscUtils.lerp(opacities[i - 1], opacities[i], progress)); in getOpacityAtPosition()
146 return (int) (255 * opacities[opacities.length - 1]); in getOpacityAtPosition()
/external/skqp/modules/skottie/src/
DSkottieTest.cpp106 const std::vector<OpacityInfo>& opacities() const { return fOpacities; } in DEF_TEST() function in DEF_TEST::TestPropertyObserver
129 const auto& opacities = observer->opacities(); in DEF_TEST() local
130 REPORTER_ASSERT(reporter, opacities.size() == 2); in DEF_TEST()
131 REPORTER_ASSERT(reporter, opacities[0].node_name.equals("shape_transform_0")); in DEF_TEST()
132 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(opacities[0].opacity, 100)); in DEF_TEST()
133 REPORTER_ASSERT(reporter, opacities[1].node_name.equals("layer_0")); in DEF_TEST()
134 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(opacities[1].opacity, 50)); in DEF_TEST()
/external/skia/modules/canvaskit/tests/
Dskottie.spec.js289 const opacities = animation.getOpacityProps(); constant
290 expect(opacities.length).toEqual(1);
291 expect(opacities[0].key).toEqual('__shape_opacity');
292 expect(opacities[0].value).toEqual(50);
311 const opacities = animation.getOpacityProps(); constant
312 expect(opacities.length).toEqual(1);
313 expect(opacities[0].key).toEqual('__shape_opacity');
314 expect(opacities[0].value).toEqual(100);
/external/skia/modules/skottie/src/
DSkottieTest.cpp189 const std::vector<OpacityInfo>& opacities() const { return fOpacities; } in DEF_TEST() function in DEF_TEST::TestPropertyObserver
272 const auto& opacities = observer->opacities(); in DEF_TEST() local
273 REPORTER_ASSERT(reporter, opacities.size() == 3); in DEF_TEST()
274 REPORTER_ASSERT(reporter, opacities[0].node_name.equals("shape_transform_0")); in DEF_TEST()
275 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(opacities[0].handle->get(), 100)); in DEF_TEST()
276 REPORTER_ASSERT(reporter, opacities[1].node_name.equals("layer_0")); in DEF_TEST()
277 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(opacities[1].handle->get(), 50)); in DEF_TEST()