DrawPoint(x as Integer, y as Integer, size as Float, rgba as Integer) as Void
Draws a point at (x,y) with the given size and RGBA color.
Did you try it?
function ifDraw2D.drawPoint(x, y, size, rgba):
m.drawRect(x - size/2, y - size/2, size, size, rgba)
Not useless if it is faster than DrawRect. (worth testing though to see how fast/slow). Have you seen the StarField Screensaver
(created by the engineer who implemented DrawPoint, and most of the other 2D API stuff).
Interesting .. I wrote a Life game several years ago using the NDK, so the inner loops are all compiled C code. It probably only runs on the Roku 3 though. It would be interesting to compare performance. Mine is probably close to as fast as possible using the CPU, but it would probably be much faster using OpenGL pixel shaders (ideas here and here and here among other easily googleable sites. Of course you couldn't do that on the Roku without the NDK.
It's asking for $2 upfront, has a 1-line description and shows a single snapshot of a black screen sprinkled with dots - mighty unconvincing
Oh you got fancy. No I just used a simple bitmap loop. At the time I wrote it I was more interested in testing the frame buffer than writing a good Life game. On a Roku 3 1000 generations of R pentomino takes 43 seconds in my game. This is on a 400 x 240 board, although the board size may not matter for you if you used a more advanced algorithm.