public static LTexture CreateGradientTexture(int width, int height, bool alpha, Color topLeftColor, Color topRightColor, Color bottomRightColor, Color bottomLeftColor) { LPixmap imgProcessor = new LPixmap(width, height, alpha); imgProcessor.FourCornersGradient(topLeftColor, topRightColor, bottomRightColor, bottomLeftColor); return imgProcessor.Texture; }
public static LTexture CreateGradientTexture(int width, int height, bool alpha, Color topLeftColor, Color topRightColor, Color bottomRightColor, Color bottomLeftColor) { LPixmap imgProcessor = new LPixmap(width, height, alpha); imgProcessor.FourCornersGradient(topLeftColor, topRightColor, bottomRightColor, bottomLeftColor); return(imgProcessor.Texture); }