NativeScript / canvas

Apache License 2.0
88 stars 18 forks source link

TwoPointConicalGradient strange behavior #118

Closed vallemar closed 8 months ago

vallemar commented 8 months ago

When I do the same example as RN Skia I get this

image

I would expect to see this https://shopify.github.io/react-native-skia/docs/shaders/gradients#example-2

My code

 <Dom>
          <Rect x="0" y="0" width="256" height="256">
               <TwoPointConicalGradient :start="{ x: 0, y: 0 }" startR="128" :end="{ x: 256, y: 256 }" endR="16" :colors="['#bd34fe', '#65adf1']" />
          </Rect>
</Dom>

Same on ios y android

triniwiz commented 8 months ago

Look at the start point

vallemar commented 8 months ago

@triniwiz oh sorry, it works perfect!!!