anchor.diff: -% @copyright 2007-2015 Zuse Institute Berlin,
  +% @copyright 2007-2016 Zuse Institute Berlin,
   
   %   Licensed under the Apache License, Version 2.0 (the "License");
   %   you may not use this file except in compliance with the License.
  
positive.code:         _ -> Coords
      end.
  
  % @doc Convert a Pid into an integer.
  -spec pid_to_integer(comm:mypid()) -> integer().
  pid_to_integer(Pid) ->
      {A,B,C,D} = comm:get_ip(Pid),
      I = comm:get_port(Pid),
      A+B+C+D+I.
  
  % @doc Choose a random color for a Pid
  -spec color(comm:mypid()) -> string().
  color(Pid) ->
      Hi = 255,
      Lo = 0,
      S1 = webhelpers:pid_to_integer(Pid),
      _ = random:seed(S1,S1,S1),
      C1 = randoms:uniform(Hi-Lo)+Lo-1,
      C2 = randoms:uniform(Hi-Lo)+Lo-1,
      C3 = randoms:uniform(Hi-Lo)+Lo-1,
      io_lib:format("rgb(~p,~p,~p)",[C1,C2,C3])
      .
  
  % @doc Get a string representation for a vivaldi coordinate
  -spec format_coordinate([gossip_vivaldi:network_coordinate(),...]) -> string().
  
negative.code: %   limitations under the License.
  
  %% @author Thorsten Schuett <schuett@zib.de>
  %% @doc web helpers module for mgmt server to generate the web interface
  %% @version $Id$
  -module(webhelpers).
  -author('schuett@zib.de').
  