void Graphics::Draw8x8x1(int x, int y, const byte* t, ushort* color) { LCD::SetWrap(x,y,8,8); LCD::SetGRAM(x,y); for (int i = 0; i < 8; i++) Draw8(*t++,color); }
// Octant circle drawing void Graphics_::Circle(int cx, int cy, int radius, int color, bool fill) { int error = -radius; int x = radius; int y = 0; // draws in 4 strips from top down and middle up + reflection about y while (x >= y) { Draw8(cx, cy, x, y,color,fill); error += y; ++y; error += y; if (error >= 0) { --x; error -= x<<1; } } }