예제 #1
0
def renderWithBackground(s, border_width, color):
  if s.uses_epsilon():
    widths = [x + 2 * border_width for x in s.widths()]
    widths[2] = 0.0
    return primitives.solidSquare(color, widths).stackCentered(2, s,
        spacing = distances.epsilon )
  else:
    return s
예제 #2
0
def renderWithBackground(s, border_width, color):
    return s
    widths = [x + 2 * border_width for x in s.widths()]
    return primitives.solidSquare(color, widths).stackCentered(2, s, spacing=distances.epsilon)