Ejemplo n.º 1
0
        void DrawCell(GifCube cube, int x, int y, int z, Vector2 pos, Vector2 size)
        {
            ColorRGB color = cube[new ColorRGB((byte)(x * 17), (byte)(y * 17), (byte)(z * 17))];

            DrawRectangle(pos.ToRectangle(size), color.ToXNAColor());
            DrawString(ColorToString(color), pos, GetContrastingColor(color));
        }
Ejemplo n.º 2
0
 void DrawColorBlock(ColorRGB color, Vector2 pos, Vector2 size)
 {
     DrawRectangle(pos.ToRectangle(size), color.ToXNAColor());
     DrawString(GetHexString(color), pos, GetContrastingColor(color));
 }
Ejemplo n.º 3
0
 void DrawColorBlock(ColorRGB color, Vector2 pos, Vector2 size)
 {
     spriteBatch.Draw(whiteTexture, pos.ToRectangle(size), color.ToXNAColor());
     spriteBatch.DrawString(font, GetHexString(color), pos, GetContrastingColor(color));
 }
Ejemplo n.º 4
0
 void DrawPointer(ColorRGB color, Vector2 pos, Vector2 size)
 {
     DrawImage(pointerTexture, new Vector2((int)(pos.X), (int)(pos.Y + size.Y - 16)));
     DrawRectangle(new Rectangle((int)(pos.X - 8), (int)(pos.Y + size.Y - 8), 16, 16), color.ToXNAColor());
 }
Ejemplo n.º 5
0
 void DrawPointer(ColorRGB color, Vector2 pos, Vector2 size)
 {
     spriteBatch.Draw(pointerTexture, new Rectangle((int)(pos.X), (int)(pos.Y + size.Y - 16), 16, 16), Color.White);
     spriteBatch.Draw(pinheadTexture, new Rectangle((int)(pos.X - 8), (int)(pos.Y + size.Y - 8), 16, 16), color.ToXNAColor());
 }