src/main/java/com/spinyowl/legui/system/renderer/nvg/util/NvgColorUtil.java
public static NVGColor create(Vector4fc rgba) {
    NVGColor color = NVGColor.calloc();
    color.r(rgba.x());
    color.g(rgba.y());
    color.b(rgba.z());
    color.a(rgba.w());
    return color;
  }
/**
   * Used to allocate and fill instance of {@link NVGColor}. Should be used in try-with-resources to
   * avoid memory leaks.
   *
   * @param rgba rgba color {@link Vector4fc} of floats. <ul> <li>rgba.x - red.</li> <li>rgba.y -
   *             green.</li> <li>rgba.z - blue.</li> <li>rgba.w - alpha.</li>
   *             </ul>
   * @return allocated and filled color.
   */
Used to allocate and fill instance of  NVGColor. Should be used in try-with-resources to
avoid memory leaks.

@param rgba rgba color  Vector4fc of floats.
Used to allocate and fill instance of NVGColor . Should be used in try - with - resources to avoid memory leaks . @param rgba rgba color Vector4fc of floats .
public static NVGColor create(Vector4fc rgba) {
    NVGColor color = NVGColor.calloc();
    color.r(rgba.x());
    color.g(rgba.y());
    color.b(rgba.z());
    color.a(rgba.w());
    return color;
  }
public static NVGColor create ( Vector4fc rgba ) { NVGColor color = NVGColor . calloc ( ) ; color . r ( rgba . x ( ) ) ; color . g ( rgba . y ( ) ) ; color . b ( rgba . z ( ) ) ; color . a ( rgba . w ( ) ) ; return color ; }
Used to allocate and fill instance of {@link NVGColor}.
Used to allocate and fill instance of { @link NVGColor } .