void HotCubeCube::lightDisconnected (unsigned int side) { // Image is now drawing red bar at "top" if (side == TOP || side == BOTTOM) { paintEdge (side, HotCubeDiscHoriz[matchups[side].color]); paintStamp (side, matchups[side].stamp); } else { paintEdge (side, HotCubeDiscVert[matchups[side].color]); paintStamp (side, matchups[side].stamp); } }
void Shadow::drawShadowImpl(cairo_t* cr, int x, int y, int width, int height) { const int sBrSize = shadowBottomRightSize; const int sTlSize = shadowTopLeftSize; drawShadowTop(cr, x, y, width - 3, 0, 0, 0); drawShadowLeft(cr, x, y, height - 3, 0, 0, 0); drawShadowRight(cr, x + width, y - 4, height + 5, 0, 0, 0); drawShadowBottom(cr, x - 4, y + height, width + 5, 0, 0, 0); paintEdge(cr, this->edgeTopLeft, x, y, sTlSize, sTlSize); paintEdge(cr, this->edgeTopRight, x + width + 1, y, sBrSize, sTlSize); paintEdge(cr, this->edgeBottomLeft, x, y + height + 1, sTlSize, sBrSize); paintEdge(cr, this->edgeBottomRight, x + width + 1, y + height + 1, sBrSize, sBrSize); }
void HotCubeCube::lightConnected (unsigned int side, unsigned int stampId) { LOG ("HotCubeCube::lightConnected (%d)\n", side); buffer->sprites[side].hide(); if (side == TOP || side == BOTTOM) { paintEdge (side, HotCubeGreen[0]); } else { paintEdge (side, HotCubeGreen[1]); } successfulMatches++; // buffer->bg0.image(vec(0,0), HotCubeConn[side]); }