| 230 | } |
| 231 | |
| 232 | void ofSetColorGradient(const ofColor& colorA, const ofColor& colorB, ofVec2f gradientStart, ofVec2f gradientEnd) |
| 233 | { |
| 234 | sStyleStack.GetStyle().color = colorA; |
| 235 | if (Push2Control::sDrawingPush2Display) |
| 236 | { |
| 237 | nvgStrokeColor(gNanoVG, nvgRGBA(colorA.r, colorA.g, colorA.b, colorA.a)); |
| 238 | nvgFillColor(gNanoVG, nvgRGBA(colorA.r, colorA.g, colorA.b, colorA.a)); |
| 239 | return; |
| 240 | } |
| 241 | NVGpaint pattern = nvgLinearGradient(gNanoVG, gradientStart.x, gradientStart.y, gradientEnd.x, gradientEnd.y, nvgRGBA(colorA.r, colorA.g, colorA.b, colorA.a), nvgRGBA(colorB.r, colorB.g, colorB.b, colorB.a)); |
| 242 | nvgStrokePaint(gNanoVG, pattern); |
| 243 | nvgFillPaint(gNanoVG, pattern); |
| 244 | } |
| 245 | |
| 246 | void ofSetColor(float grey) |
| 247 | { |
no test coverage detected