Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __forceinline void DrawPlayer(GpGraphics *graphics, REAL x, REAL y, REAL size)
- {
- GpSolidFill *brush;
- GpPath *path;
- GpPathGradient *pathgradient;
- // main ellipse:
- GdipCreatePath(FillModeWinding, &path);
- GdipAddPathEllipse(path, x, y, size, size);
- GdipCreatePathGradientFromPath(path, &pathgradient);
- GdipSetPathGradientCenterColor(pathgradient, 0xFF2D9B2D);
- ARGB colors = { 0xFF095A09 };
- int count = 1;
- GdipSetPathGradientSurroundColorsWithCount(pathgradient, &colors, &count);
- GdipFillEllipse(graphics, pathgradient, x, y, size, size);
- // reflection:
- GdipAddPathEllipse(path, x, y, size, size);
- GdipSetPathGradientCenterColor(pathgradient, 0x88FFFFFF);
- GdipFillEllipse(graphics, pathgradient, x, y, size, size);
- GdipCreateSolidFill(0x44FFFFFF, &brush);
- GdipFillEllipse(graphics, brush, x + size/5, y + size/10, size/3 * 2, size/3);
- // eyes:
- GdipCreateSolidFill(0xFFFFFFFF, &brush);
- GdipFillEllipse(graphics, brush, x + size/7, y + size/7, size/3, size/3);
- GdipFillEllipse(graphics, brush, x + size/2, y + size/7, size/3, size/3);
- GdipCreateSolidFill(0xFF000000, &brush);
- GdipFillEllipse(graphics, brush, x + size/4, y + size/4, size/8, size/8);
- GdipFillEllipse(graphics, brush, x + size/3 + size/4, y + size/4, size/8, size/8);
- }
Add Comment
Please, Sign In to add comment