Sign in
skia
/
external
/
github.com
/
rive-app
/
rive-cpp
/
4b7ce871ca5e2d11a0bd9ef7e281722d4d12f7db
/
.
/
src
/
shapes
/
paint
/
radial_gradient.cpp
blob: 4d1789134c6e2f5bd45ad57935fbb4cce8ddd78d [
file
] [
log
] [
blame
]
#include
"rive/shapes/paint/radial_gradient.hpp"
#include
"rive/renderer.hpp"
using
namespace
rive
;
void
RadialGradient
::
makeGradient
(
const
Vec2D
&
start
,
const
Vec2D
&
end
)
{
renderPaint
()->
radialGradient
(
start
[
0
],
start
[
1
],
end
[
0
],
end
[
1
]);
}