[skottie] Fix polystar points distribution
Points start at bearing 0. TBR= Change-Id: I6798b1a5fb4709ab31b13ab76a78f49758e7eec6 Reviewed-on: https://skia-review.googlesource.com/140246 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
This commit is contained in:
parent
a7e78ee1d4
commit
4b15dc202f
@ -68,7 +68,7 @@ void PolyStarAdapter::apply() {
|
||||
|
||||
SkPath poly;
|
||||
|
||||
auto angle = SkDegreesToRadians(fRotation);
|
||||
auto angle = SkDegreesToRadians(fRotation - 90);
|
||||
poly.moveTo(pt_on_circle(fPosition, fOuterRadius, angle));
|
||||
poly.incReserve(fType == Type::kStar ? count * 2 : count);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user