Where: sx,sy define scaling, kx,ky skewing, and tx,ty translation. The current transformation matrix is a affine matrix: The paths, gradients, patterns and scissor region are transformed by an transformation matrix at the time when they are passed to the API. Solid color is simply defined as a color value, different kinds of paints can be created using #nvgLinearGradient, #nvgBoxGradient, #nvgRadialGradient and #nvgImagePattern.Ĭurrent render style can be saved and restored using #nvgSave and #nvgRestore. Render stylesįill and stroke render style can be either a solid color or a paint which is a gradient or a pattern. The state contains transform, fill and stroke styles, text and font styles, and scissor clipping. NanoVG contains state which represents how paths will be rendered. Color utilsĬolors in NanoVG are stored as unsigned ints in ABGR format. It is aimed to be a practical and fun toolset for building scalable user interfaces and visualizations. It has lean API modeled after HTML5 canvas API. NanoVG is a small antialiased vector graphics rendering library for OpenGL.
0 Comments
Leave a Reply. |