"Represented by" vs. "represented with"

What should I write?

  • A certain property is represented with a special color.
  • A certain property is represented by a special color.

Or maybe even "indicated with/by"? But the main point of this question remains: with or by?


You would say it is represented by a certain color.


With and by signify 2 different meanings:

Consider:

He was represented with his accomplices by the best lawyer available.