def get_colours(n):
 base = np.asarray([[1, 0, 0], [0, 1, 0], [0, 0, 1]])
 if (n <= 3):
  return base[0:n]
 needed = ((((n - 3) + 1) / 2), ((n - 3) / 2))
 colours = []
 for start in (0, 1):
  for x in np.linspace(0, 1, (needed[start] + 2)):
   colours.append(((base[start] * (1.0 - x)) + (base[(start + 1)] * x)))
 return [pastel(c) for c in colours[0:n]]

def get_colours ( n ) : base = np . asarray ( [ [ 1 , 0 , 0 ] , [ 0 , 1 , 0 ] , [ 0 , 0 , 1 ] ] ) if ( n <= 3 ) : return base [ 0 : n ] needed = ( ( ( ( n - 3 ) + 1 ) / 2 ) , ( ( n - 3 ) / 2 ) ) colours = [ ] for start in ( 0 , 1 ) : for x in np . linspace ( 0 , 1 , ( needed [ start ] + 2 ) ) : colours . append ( ( ( base [ start ] * ( 1.0 - x ) ) + ( base [ ( start + 1 ) ] * x ) ) ) return [ pastel ( c ) for c in colours [ 0 : n ] ]
return n pastel colours .