How to apply a array of pixels to Image?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ghsoares

Hello!

I would like to modify an entire image from script (currently I’m using C# but it don’t change too much from GDScript in terms of functionality), in Processing (p5.js version to java) it’s faster to store the colors in a array and then use built-in function to apply those to image, but in godot I can’t find an implementation to apply a array of Colors, so two questions:

  1. In godot applying an entire array is faster than passing to every pixel and applying the color?
  2. If so, is there a way to do that?