Draw Pixels (Native Extension)


Draw Pixels.apk.zip (2.3 MB) - apk for performance testing

Defold engine native extension for drawing pixels and simple geometry into texture buffer.
Thanks @britzl and @Mathias_Westerdahl for help.

(Like a result of this polling)

Feel free to contribute!

If you want to contribute and don’t know what you can do, look into next list:

  • Draw rectangle by two corner dots
  • (Done!!! thanks @britzl )Draw line
  • Draw line with thickness parameter
  • Bézier curves
  • Anti aliasing



Great! Is this to be used for debugging, or fast enough to be used in games?


It depend of your game, but I have plans to use it in one of my game, yes.
I added into main post apk for performance testing.


NE was updated with new parameter “angle” for filled rectangle