Hello Greg
There is a problem with this example. The code does not draw a heart. He draws a square.
namespace BrainPadDemo
{
class Program
{
static void Main()
{
BrainPad.Display.DrawPoint(64, 32);
BrainPad.Display.DrawLine(0, 52, 127, 52);
BrainPad.Display.DrawRectangle(48, 20, 32, 24);
BrainPad.Display.DrawCircle(64, 32, 20);
byte[] pictureData = new byte[]
{ 0, 0, 1, 0, 0 ,0, 1, 0, 0,
0, 1, 0, 1, 0, 1, 0, 1, 0,
1, 0, 0, 0, 1, 0, 0, 0, 1,
1, 0, 0, 0, 1, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 1,
0, 1, 0, 0, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0, 1, 0, 0,
0, 0, 0, 1, 0, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0, 0,
};
BrainPad.Display.DrawPicture(0, 0, BrainPad.Display.CreatePicture(9, 9, pictureData));
BrainPad.Display.DrawPicture(10, 10, BrainPad.Display.CreateScaledPicture(9, 9, pictureData, 2));
BrainPad.Display.RefreshScreen();
}
}
}
See beelow
