public void DrawJulia() { fsb.tf = jsbTraFun; fsb.c = JuliaC; fsb.GenerateJulia(N, center, zoomSize, pixelSize); SetPixels(); TextureToFile.Save(texture); }
void ImageColorShift(Texture2D src, float shift) { Color[] colorMap = new Color[src.width * src.height]; int index = 0; for (int y = 0; y < src.height; y++) { for (int x = 0; x < src.width; x++) { colorMap[index] = colorShift.Shift(src.GetPixel(x, y), shift); index++; } } tmpTexture.SetPixels(colorMap); tmpTexture.Apply(); TextureToFile.Save(tmpTexture); }