public GridBackGround(Rectangle boundZ, Color lineColor, Color backColor, Vector2 spacing, int lineWidthZ) { bounds = Util.newRectangle(boundZ); colour = backColor; lineColour1 = lineColor; lineSpacing = spacing; lineWidth = lineWidthZ; offset = new Vector2(0, 0); delta = new Vector2(0, 0); }
public override void Draw(SpriteBatch sb) { if (!active) { return; } Rectangle r = parent.getBoundingBoxAA(); Rectangle c = Util.newRectangle(curFrame); c.X = c.X + r.X; c.Y = c.Y + r.Y; sb.Draw(tex, c, sourceFrame, curColour); }
public RC_posInrectangle(Rectangle r, Random rndZ) { rect = Util.newRectangle(r); rnd = rndZ; }