Created
May 3, 2015 13:18
-
-
Save raph-amiard/9bd1dbb03ea3286b0b11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ewwww | |
NVGpaint shadowPaint = nvgBoxGradient(mCtx, left + shadow.d_xpos - shadow.d_spread, top + shadow.d_ypos - shadow.d_spread, width + shadow.d_spread * 2.f, height + shadow.d_spread * 2.f, c0 + shadow.d_spread, shadow.d_blur, nvgRGBA(0, 0, 0, 128), nvgRGBA(0, 0, 0, 0)); | |
// What's so wrong about | |
NVGpaint shadowPaint = nvgBoxGradient( | |
mCtx, | |
left + shadow.d_xpos - shadow.d_spread, | |
top + shadow.d_ypos - shadow.d_spread, | |
width + shadow.d_spread * 2.f, | |
height + shadow.d_spread * 2.f, | |
c0 + shadow.d_spread, | |
shadow.d_blur, | |
nvgRGBA(0, 0, 0, 128), nvgRGBA(0, 0, 0, 0) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment